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/SkNote.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/SkNote.vue')
| -rw-r--r-- | packages/frontend/src/components/SkNote.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/components/SkNote.vue b/packages/frontend/src/components/SkNote.vue index 7dc513ff0b..7cd5c2e0cf 100644 --- a/packages/frontend/src/components/SkNote.vue +++ b/packages/frontend/src/components/SkNote.vue @@ -104,7 +104,7 @@ SPDX-License-Identifier: AGPL-3.0-only </div> <MkPoll v-if="appearNote.poll" :noteId="appearNote.id" :poll="appearNote.poll" :local="!appearNote.user.host" :class="$style.poll" @click.stop/> <div v-if="isEnabledUrlPreview"> - <MkUrlPreview v-for="url in urls" :key="url" :url="url" :compact="true" :detail="false" :showAsQuote="true" :class="$style.urlPreview" @click.stop/> + <MkUrlPreview v-for="url in urls" :key="url" :url="url" :compact="true" :detail="false" :showAsQuote="true" :skipNoteIds="[appearNote.renote?.id]" :class="$style.urlPreview" @click.stop/> </div> <div v-if="appearNote.renote" :class="$style.quote"><SkNoteSimple :note="appearNote.renote" :class="$style.quoteNote"/></div> <button v-if="isLong && collapsed" :class="$style.collapsed" class="_button" @click.stop @click="collapsed = false"> |