]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+admin/follows/shared/follow.service.ts
Unfollow with host
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / follows / shared / follow.service.ts
index 3a430ff6429f06a85c82f456ba48944c27d3e669..089be9d64542cd1054880db1467b1e2c3ad8d579 100644 (file)
@@ -47,7 +47,7 @@ export class FollowService {
   }
 
   unfollow (follow: AccountFollow) {
-    return this.authHttp.delete(FollowService.BASE_APPLICATION_URL + '/following/' + follow.following.id)
+    return this.authHttp.delete(FollowService.BASE_APPLICATION_URL + '/following/' + follow.following.host)
       .map(this.restExtractor.extractDataBool)
       .catch(res => this.restExtractor.handleError(res))
   }