Implement unfollow, unlike, unrepost

This commit is contained in:
Paul Frazee 2022-09-23 09:47:21 -05:00
parent aabde2b401
commit a8c8286b88
6 changed files with 61 additions and 41 deletions

View file

@ -74,9 +74,7 @@ export class ProfileViewModel {
throw new Error('Not logged in')
}
if (this.myState.follow) {
await apilib.unfollow(this.rootStore.api, this.rootStore.me.did, {
did: this.did,
})
await apilib.unfollow(this.rootStore.api, this.myState.follow)
runInAction(() => {
this.followersCount--
this.myState.follow = undefined