fix: config
This commit is contained in:
parent
e9cf2e141b
commit
d6c578fafc
@ -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
|
||||
}
|
||||
|
@ -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(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user