diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-10-06 18:01:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-06 18:01:57 -0700 |
commit | 77b21dfb1c2871447bf60ebf9efeb283282a1b51 (patch) | |
tree | 2e1aa291e9f5e09a6af046ec1f126fe51820ede0 /src/state/models/cache/my-follows.ts | |
parent | 9cff82448f75e569899c826317a1fd668e8f97c7 (diff) | |
download | voidsky-77b21dfb1c2871447bf60ebf9efeb283282a1b51.tar.zst |
Fix bug that prevents unfollowing (#1633)
Diffstat (limited to 'src/state/models/cache/my-follows.ts')
-rw-r--r-- | src/state/models/cache/my-follows.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/models/cache/my-follows.ts b/src/state/models/cache/my-follows.ts index 14dc9895d..07079b5af 100644 --- a/src/state/models/cache/my-follows.ts +++ b/src/state/models/cache/my-follows.ts @@ -102,8 +102,8 @@ export class MyFollowsCache { getFollowUri(did: string): string { const v = this.byDid[did] - if (typeof v === 'string') { - return v + if (v && typeof v.followRecordUri === 'string') { + return v.followRecordUri } throw new Error('Not a followed user') } |