update navigation bar
This commit is contained in:
@@ -20,7 +20,7 @@ export const useChannelProfile = (id: string, channelPubkey: string) => {
|
||||
|
||||
const { data: cache, isLoading } = useSWR(['channel-cache-profile', id], fetcher);
|
||||
const { data, error } = useSWRSubscription(
|
||||
!isLoading && !cache ? ['channel-profile', id] : null,
|
||||
!isLoading && cache ? ['channel-profile', id] : null,
|
||||
([, key], { next }) => {
|
||||
// subscribe to channel
|
||||
const unsubscribe = pool.subscribe(
|
||||
|
||||
@@ -35,7 +35,7 @@ export const noteParser = (event: Event) => {
|
||||
|
||||
// map hashtag to em
|
||||
content.original.match(/#(\w+)(?!:\/\/)/g)?.forEach((item) => {
|
||||
content.parsed = content.parsed.replace(item, `[${item}](https://primal.net/search/${item})`);
|
||||
content.parsed = content.parsed.replace(item, ` [${item}](https://primal.net/search/${item})`);
|
||||
});
|
||||
|
||||
// handle nostr mention
|
||||
|
||||
Reference in New Issue
Block a user