about summary refs log tree commit diff
path: root/src/state/models/profile-view.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-09-23 09:47:21 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-09-23 09:47:21 -0500
commita8c8286b88eae3e7db23555be90cb9673361be20 (patch)
tree34a7e50e776a4c2feae601f7aa08eb312da5c708 /src/state/models/profile-view.ts
parentaabde2b401e725090232f203f23152ee1d50d566 (diff)
downloadvoidsky-a8c8286b88eae3e7db23555be90cb9673361be20.tar.zst
Implement unfollow, unlike, unrepost
Diffstat (limited to 'src/state/models/profile-view.ts')
-rw-r--r--src/state/models/profile-view.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/state/models/profile-view.ts b/src/state/models/profile-view.ts
index 24d49c112..7a85d06ae 100644
--- a/src/state/models/profile-view.ts
+++ b/src/state/models/profile-view.ts
@@ -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