diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-14 09:31:41 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:51 +0100 |
commit | 1e1265b36c09df1465aa2b4866815c957b6a532e (patch) | |
tree | 0ac1b7398c1c941fb653fd27fe037fadae24871d /client/src/app/+admin/friends/shared/friend.service.ts | |
parent | 8e6964874990d5ee9d3703be71c6ab4617b9ce20 (diff) | |
download | PeerTube-1e1265b36c09df1465aa2b4866815c957b6a532e.tar.gz PeerTube-1e1265b36c09df1465aa2b4866815c957b6a532e.tar.zst PeerTube-1e1265b36c09df1465aa2b4866815c957b6a532e.zip |
Make the client compile too
Diffstat (limited to 'client/src/app/+admin/friends/shared/friend.service.ts')
-rw-r--r-- | client/src/app/+admin/friends/shared/friend.service.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/+admin/friends/shared/friend.service.ts b/client/src/app/+admin/friends/shared/friend.service.ts index a32cdcc88..083a2fce0 100644 --- a/client/src/app/+admin/friends/shared/friend.service.ts +++ b/client/src/app/+admin/friends/shared/friend.service.ts | |||
@@ -19,21 +19,21 @@ export class FriendService { | |||
19 | private restExtractor: RestExtractor | 19 | private restExtractor: RestExtractor |
20 | ) {} | 20 | ) {} |
21 | 21 | ||
22 | getFriends (pagination: RestPagination, sort: SortMeta): Observable<ResultList<Pod>> { | 22 | getFollowing (pagination: RestPagination, sort: SortMeta): Observable<ResultList<Pod>> { |
23 | let params = new HttpParams() | 23 | let params = new HttpParams() |
24 | params = this.restService.addRestGetParams(params, pagination, sort) | 24 | params = this.restService.addRestGetParams(params, pagination, sort) |
25 | 25 | ||
26 | return this.authHttp.get<ResultList<Pod>>(FriendService.BASE_FRIEND_URL, { params }) | 26 | return this.authHttp.get<ResultList<Account>>(API_URL + '/followers', { params }) |
27 | .map(res => this.restExtractor.convertResultListDateToHuman(res)) | 27 | .map(res => this.restExtractor.convertResultListDateToHuman(res)) |
28 | .catch(res => this.restExtractor.handleError(res)) | 28 | .catch(res => this.restExtractor.handleError(res)) |
29 | } | 29 | } |
30 | 30 | ||
31 | makeFriends (notEmptyHosts: String[]) { | 31 | follow (notEmptyHosts: String[]) { |
32 | const body = { | 32 | const body = { |
33 | hosts: notEmptyHosts | 33 | hosts: notEmptyHosts |
34 | } | 34 | } |
35 | 35 | ||
36 | return this.authHttp.post(FriendService.BASE_FRIEND_URL + 'make-friends', body) | 36 | return this.authHttp.post(API_URL + '/follow', body) |
37 | .map(this.restExtractor.extractDataBool) | 37 | .map(this.restExtractor.extractDataBool) |
38 | .catch(res => this.restExtractor.handleError(res)) | 38 | .catch(res => this.restExtractor.handleError(res)) |
39 | } | 39 | } |