.catch(res => this.restExtractor.handleError(res))
}
- follow (notEmptyHosts: String[]) {
+ follow (notEmptyHosts: string[]) {
const body = {
hosts: notEmptyHosts
}
.map(this.restExtractor.extractDataBool)
.catch(res => this.restExtractor.handleError(res))
}
+
+ unfollow (follow: AccountFollow) {
+ return this.authHttp.delete(FollowService.BASE_APPLICATION_URL + '/following/' + follow.following.id)
+ .map(this.restExtractor.extractDataBool)
+ .catch(res => this.restExtractor.handleError(res))
+ }
}