diff options
| author | dakkar <dakkar@thenautilus.net> | 2025-02-10 11:37:03 +0000 |
|---|---|---|
| committer | dakkar <dakkar@thenautilus.net> | 2025-02-10 11:42:10 +0000 |
| commit | c6eb1ffde348d52173f34e2dbfe1587865776dc4 (patch) | |
| tree | 0e610ac4d7b5b38a85bdb0ef7bd3ee55fdc66ddf /packages/frontend/src/components/MkNoteDetailed.vue | |
| parent | merge: Rework rate limit factors and add caching (resolves #884) (!884) (diff) | |
| download | sharkey-c6eb1ffde348d52173f34e2dbfe1587865776dc4.tar.gz sharkey-c6eb1ffde348d52173f34e2dbfe1587865776dc4.tar.bz2 sharkey-c6eb1ffde348d52173f34e2dbfe1587865776dc4.zip | |
hide note preview if it's already quoted - fixes #888
I do not particularly _love_ this solution, but it is simple and
effective
I can't find another reliable way to determine if a link goes to a
local note of the given id, apart from fetching the link
Diffstat (limited to 'packages/frontend/src/components/MkNoteDetailed.vue')
| -rw-r--r-- | packages/frontend/src/components/MkNoteDetailed.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index 93a543dff1..2eb4431de2 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -117,7 +117,7 @@ SPDX-License-Identifier: AGPL-3.0-only </div> <MkPoll v-if="appearNote.poll" ref="pollViewer" :noteId="appearNote.id" :poll="appearNote.poll" :local="!appearNote.user.host" :class="$style.poll"/> <div v-if="isEnabledUrlPreview"> - <MkUrlPreview v-for="url in urls" :key="url" :url="url" :compact="true" :detail="true" :showAsQuote="true" style="margin-top: 6px;"/> + <MkUrlPreview v-for="url in urls" :key="url" :url="url" :compact="true" :detail="true" :showAsQuote="true" :skipNoteIds="[appearNote.renote?.id]" style="margin-top: 6px;"/> </div> <div v-if="appearNote.renote" :class="$style.quote"><MkNoteSimple :note="appearNote.renote" :class="$style.quoteNote" :expandAllCws="props.expandAllCws"/></div> </div> |