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