Fix bug that prevents unfollowing (#1633)

zio/stable
Paul Frazee 2023-10-06 18:01:57 -07:00 committed by GitHub
parent 9cff82448f
commit 77b21dfb1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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')
}