fix: prevent stacking a duplicate of the main note when clicking a self-link

This commit is contained in:
Julien Calixte
2026-03-21 22:59:10 +01:00
parent c0b1a33c69
commit 32f79785a8
3 changed files with 30 additions and 4 deletions

View File

@@ -108,8 +108,10 @@ const language = computed(() =>
: null,
)
const mainNoteId = computed(() => `${props.shortDid}-${props.rkey}`)
const { stackedNotes, scrollToFocusedNote } = useRouteQueryStackedNotes()
const { listenToClick } = useATProtoLinks("note-display")
const { listenToClick } = useATProtoLinks("note-display", { mainNoteId })
useResizeContainer("note-container", stackedNotes)
watch(