Fix bug that prevents unfollowing (#1633)

This commit is contained in:
Paul Frazee
2023-10-06 18:01:57 -07:00
committed by GitHub
parent 9cff82448f
commit 77b21dfb1c
+2 -2
View File
@@ -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')
}