diff options
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/friends.js | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/server/lib/friends.js b/server/lib/friends.js index 3d3d0fdee..f0575ff2f 100644 --- a/server/lib/friends.js +++ b/server/lib/friends.js | |||
@@ -54,7 +54,13 @@ function removeVideoToFriends (videoParams) { | |||
54 | } | 54 | } |
55 | 55 | ||
56 | function reportAbuseVideoToFriend (reportData, video) { | 56 | function reportAbuseVideoToFriend (reportData, video) { |
57 | createRequest('report-abuse', constants.REQUEST_ENDPOINTS.VIDEOS, reportData, [ video.Author.podId ]) | 57 | const options = { |
58 | type: 'report-abuse', | ||
59 | endpoint: constants.REQUEST_ENDPOINTS.VIDEOS, | ||
60 | data: reportData, | ||
61 | toIds: [ video.Author.podId ] | ||
62 | } | ||
63 | createRequest(options) | ||
58 | } | 64 | } |
59 | 65 | ||
60 | function hasFriends (callback) { | 66 | function hasFriends (callback) { |
@@ -161,7 +167,13 @@ function sendOwnedVideosToPod (podId) { | |||
161 | return | 167 | return |
162 | } | 168 | } |
163 | 169 | ||
164 | createRequest('add', constants.REQUEST_ENDPOINTS.VIDEOS, remoteVideo, [ podId ]) | 170 | const options = { |
171 | type: 'add', | ||
172 | endpoint: constants.REQUEST_ENDPOINTS.VIDEOS, | ||
173 | data: remoteVideo, | ||
174 | toIds: [ podId ] | ||
175 | } | ||
176 | createRequest(options) | ||
165 | }) | 177 | }) |
166 | }) | 178 | }) |
167 | }) | 179 | }) |