diff options
Diffstat (limited to 'src/state/models')
-rw-r--r-- | src/state/models/discovery/foafs.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/state/models/discovery/foafs.ts b/src/state/models/discovery/foafs.ts index 4a46ae9de..241338a16 100644 --- a/src/state/models/discovery/foafs.ts +++ b/src/state/models/discovery/foafs.ts @@ -23,6 +23,18 @@ export class FoafsModel { makeAutoObservable(this) } + get hasContent() { + if (this.popular.length > 0) { + return true + } + for (const foaf of this.foafs.values()) { + if (foaf.follows.length) { + return true + } + } + return false + } + fetch = bundleAsync(async () => { try { this.isLoading = true |