diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-08-21 10:41:21 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-08-21 10:41:21 +0200 |
commit | e105c19c8ebe56b6828ba82948895ad0ca71d8c2 (patch) | |
tree | 75509eaf6df4b70fc8d58f6b8d451147edb3f790 /client/src/app/admin/friends/shared | |
parent | d57d6f2605f4ac4a81f9a8594433bb7b65f108b9 (diff) | |
download | PeerTube-e105c19c8ebe56b6828ba82948895ad0ca71d8c2.tar.gz PeerTube-e105c19c8ebe56b6828ba82948895ad0ca71d8c2.tar.zst PeerTube-e105c19c8ebe56b6828ba82948895ad0ca71d8c2.zip |
Client: support the new make friends method
Diffstat (limited to 'client/src/app/admin/friends/shared')
-rw-r--r-- | client/src/app/admin/friends/shared/friend.service.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client/src/app/admin/friends/shared/friend.service.ts b/client/src/app/admin/friends/shared/friend.service.ts index da4d64611..e4e680c29 100644 --- a/client/src/app/admin/friends/shared/friend.service.ts +++ b/client/src/app/admin/friends/shared/friend.service.ts | |||
@@ -20,8 +20,12 @@ export class FriendService { | |||
20 | .catch(this.handleError); | 20 | .catch(this.handleError); |
21 | } | 21 | } |
22 | 22 | ||
23 | makeFriends() { | 23 | makeFriends(notEmptyUrls) { |
24 | return this.authHttp.get(FriendService.BASE_FRIEND_URL + 'makefriends') | 24 | const body = { |
25 | urls: notEmptyUrls | ||
26 | }; | ||
27 | |||
28 | return this.authHttp.post(FriendService.BASE_FRIEND_URL + 'makefriends', body) | ||
25 | .map(res => res.status) | 29 | .map(res => res.status) |
26 | .catch(this.handleError); | 30 | .catch(this.handleError); |
27 | } | 31 | } |