Fix bug that prevents unfollowing (#1633)
parent
9cff82448f
commit
77b21dfb1c
|
@ -102,8 +102,8 @@ export class MyFollowsCache {
|
||||||
|
|
||||||
getFollowUri(did: string): string {
|
getFollowUri(did: string): string {
|
||||||
const v = this.byDid[did]
|
const v = this.byDid[did]
|
||||||
if (typeof v === 'string') {
|
if (v && typeof v.followRecordUri === 'string') {
|
||||||
return v
|
return v.followRecordUri
|
||||||
}
|
}
|
||||||
throw new Error('Not a followed user')
|
throw new Error('Not a followed user')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue