fix: config
Some checks failed
continuous-integration/drone/push Build is failing

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", "publicDir": "public/nostr",
"httpCache": "", "httpCache": "",
"animalNamePlaceholders": false, "animalNamePlaceholders": false,
"defaultZapPoolFee": 0,
"features": { "features": {
"analytics": false, "analytics": false,
"subscriptions": false, "subscriptions": false,
@ -30,6 +31,7 @@
"bypassImgProxyError": false, "bypassImgProxyError": false,
"preferLargeMedia": true "preferLargeMedia": true
}, },
"communityLeaders": null,
"noteCreatorToast": true, "noteCreatorToast": true,
"hideFromNavbar": ["/graph"], "hideFromNavbar": ["/graph"],
"deckSubKind": 1, "deckSubKind": 1,
@ -41,5 +43,7 @@
"wss://nostr.wine/": { "read": true, "write": false }, "wss://nostr.wine/": { "read": true, "write": false },
"wss://eden.nostr.land/": { "read": true, "write": false }, "wss://eden.nostr.land/": { "read": true, "write": false },
"wss://nos.lol/": { "read": true, "write": true } "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"; import { useLinkList } from "./useLists";
export function useCommunityLeaders() { 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 => { const list = useLinkList("leaders", rb => {
rb.withFilter().kinds([EventKind.FollowSet]).link(link); if (link) {
rb.withFilter().kinds([EventKind.FollowSet]).link(link);
}
}); });
useEffect(() => { useEffect(() => {