fix: prevent stacking a duplicate of the main note when clicking a self-link
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user