fix: 🐛
This commit is contained in:
parent
83052a2ba8
commit
2f4f4fffcf
5 changed files with 75 additions and 13 deletions
|
|
@ -12,7 +12,7 @@ import {
|
|||
import dayjs from 'dayjs'
|
||||
import { Event, kinds, nip19 } from 'nostr-tools'
|
||||
import {
|
||||
getReplaceableEventCoordinate,
|
||||
getReplaceableCoordinateFromEvent,
|
||||
getRootETag,
|
||||
isProtectedEvent,
|
||||
isReplaceableEvent
|
||||
|
|
@ -552,7 +552,7 @@ function extractImagesFromContent(content: string) {
|
|||
}
|
||||
|
||||
function buildATag(event: Event, upperCase: boolean = false) {
|
||||
const coordinate = getReplaceableEventCoordinate(event)
|
||||
const coordinate = getReplaceableCoordinateFromEvent(event)
|
||||
const hint = client.getEventHint(event.id)
|
||||
return trimTagEnd([upperCase ? 'A' : 'a', coordinate, hint])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue