1
0
forked from Kieran/snort

fix: config

This commit is contained in:
Kieran 2024-01-22 17:21:46 +00:00
parent e9cf2e141b
commit d6c578fafc
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 9 additions and 3 deletions

View File

@ -9,6 +9,7 @@
"publicDir": "public/nostr",
"httpCache": "",
"animalNamePlaceholders": false,
"defaultZapPoolFee": 0,
"features": {
"analytics": false,
"subscriptions": false,
@ -30,6 +31,7 @@
"bypassImgProxyError": false,
"preferLargeMedia": true
},
"communityLeaders": null,
"noteCreatorToast": true,
"hideFromNavbar": ["/graph"],
"deckSubKind": 1,
@ -41,5 +43,7 @@
"wss://nostr.wine/": { "read": true, "write": false },
"wss://eden.nostr.land/": { "read": true, "write": false },
"wss://nos.lol/": { "read": true, "write": true }
}
},
"alby": null,
"chatChannels": null
}

View File

@ -7,10 +7,12 @@ import { LeadersStore } from "@/Cache/CommunityLeadersStore";
import { useLinkList } from "./useLists";
export function useCommunityLeaders() {
const link = parseNostrLink(unwrap(CONFIG.communityLeaders).list);
const link = CONFIG.communityLeaders ? parseNostrLink(unwrap(CONFIG.communityLeaders).list) : undefined;
const list = useLinkList("leaders", rb => {
rb.withFilter().kinds([EventKind.FollowSet]).link(link);
if (link) {
rb.withFilter().kinds([EventKind.FollowSet]).link(link);
}
});
useEffect(() => {