+ ngOnInit () {
+ this.initialize()
+ }
+
+ async removeFollowing (follow: ActorFollow) {
+ const res = await this.confirmService.confirm(
+ this.i18n('Do you really want to unfollow {{host}}?', { host: follow.following.host }),
+ this.i18n('Unfollow')
+ )
+ if (res === false) return
+
+ this.followService.unfollow(follow).subscribe(
+ () => {
+ this.notifier.success(this.i18n('You are not following {{host}} anymore.', { host: follow.following.host }))
+ this.loadData()
+ },
+
+ err => this.notifier.error(err.message)
+ )
+ }
+