From 3589a5302ef6ef895e44663722929cb9155ec7e7 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 1 Sep 2026 13:17:31 +0300 Subject: [PATCH] better clarification + thread_muting handling (fixed typo) --- src/components/status/status.js | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/src/components/status/status.js b/src/components/status/status.js index f05742106..814b3e3c8 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -136,13 +136,30 @@ const Status = { useScrobblesStore().getLatestScrobble(this.status.user.id) }, computed: { + // Whatever we're given to work with status() { return this.statusoid ?? useStatusesStore().allStatuses.get(this.statusId) }, + // Status repeated repeatedStatus() { if (this.status.retweeted_status === undefined) return undefined return useStatusesStore().allStatuses.get(this.status.retweeted_status.id) }, + // THE repeat + repeatStatus() { + if (this.isRepeat) { + return this.status + } else { + return null + } + }, + mainStatus() { + if (this.isRepeat) { + return this.repeatedStatus + } else { + return this.status + } + }, repeater() { return useUsersStore().findUser(this.status.user.id) }, @@ -151,7 +168,7 @@ const Status = { }, showReasonMutedThread() { return ( - (this.mainStatus.thread_muted || this.mainSatus.reblog?.thread_muted) && + (this.mainStatus.thread_muted || this.repeatStatus?.thread_muted) && !this.inConversation ) }, @@ -217,13 +234,6 @@ const Status = { this.repeater.screen_name, ) }, - mainStatus() { - if (this.isRepeat) { - return this.repeatedStatus - } else { - return this.status - } - }, loggedIn() { return !!this.currentUser },