diff --git a/src/state/models/discovery/foafs.ts b/src/state/models/discovery/foafs.ts
index 4a46ae9de3..241338a16c 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
diff --git a/src/view/screens/Search.tsx b/src/view/screens/Search.tsx
index 246aa13f57..6ae5fba0d6 100644
--- a/src/view/screens/Search.tsx
+++ b/src/view/screens/Search.tsx
@@ -205,7 +205,7 @@ export const SearchScreen = withAuthRequired(
}>
{foafsView.isLoading ? (
- ) : foafsView.sources.length ? (
+ ) : foafsView.hasContent ? (
<>
{foafsView.popular.length > 0 && (