refactor
This commit is contained in:
parent
28ec943a52
commit
78725c1d14
45 changed files with 698 additions and 766 deletions
|
|
@ -2,7 +2,7 @@ import { useFetchEvent, useTranslatedEvent } from '@/hooks'
|
|||
import { createFakeEvent } from '@/lib/event'
|
||||
import { toNjump, toNote } from '@/lib/link'
|
||||
import { isValidPubkey } from '@/lib/pubkey'
|
||||
import { generateEventIdFromATag } from '@/lib/tag'
|
||||
import { generateBech32IdFromATag } from '@/lib/tag'
|
||||
import { cn } from '@/lib/utils'
|
||||
import { useSecondaryPage } from '@/PageManager'
|
||||
import { Event } from 'nostr-tools'
|
||||
|
|
@ -70,7 +70,7 @@ function HighlightSource({ event }: { event: Event }) {
|
|||
return sourceTag[1]
|
||||
}
|
||||
if (sourceTag[0] === 'a') {
|
||||
return generateEventIdFromATag(sourceTag)
|
||||
return generateBech32IdFromATag(sourceTag)
|
||||
}
|
||||
}, [sourceTag])
|
||||
const pubkey = useMemo(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue