From 28af2f2efcecda8c17f25a5b02926dcfc352a8e4 Mon Sep 17 00:00:00 2001 From: patak Date: Thu, 29 Dec 2022 14:35:28 +0100 Subject: [PATCH] feat: simplify replying to badge when it's the same as reblogger --- components/status/StatusCard.vue | 7 ++++++- components/status/StatusReplyingTo.vue | 7 ++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/components/status/StatusCard.vue b/components/status/StatusCard.vue index a493a15b..deb7fe1b 100644 --- a/components/status/StatusCard.vue +++ b/components/status/StatusCard.vue @@ -70,8 +70,13 @@ const isFiltered = $computed(() => filterPhrase && (props.context ? filter?.cont const avatarOnAvatar = $(computedEager(() => useFeatureFlags().experimentalAvatarOnAvatar)) const collapseRebloggedBy = $computed(() => rebloggedBy?.id === status.account.id) const showRebloggedByAvatarOnAvatar = $computed(() => rebloggedBy && avatarOnAvatar && rebloggedBy.id !== status.account.id) + +// Collapse ReplyingTo badge if it is a self-reply (thread) const collapseReplyingTo = $computed(() => (!rebloggedBy || collapseRebloggedBy) && status.inReplyToAccountId === status.account.id) +// Only show avatar in ReplyingTo badge if it was reblogged by the same account +const simplifyReplyingTo = $computed(() => rebloggedBy && rebloggedBy.id === status.inReplyToAccountId) + const isDM = $computed(() => status.visibility === 'direct') @@ -99,7 +104,7 @@ const isDM = $computed(() => status.visibility === 'direct')
- +
diff --git a/components/status/StatusReplyingTo.vue b/components/status/StatusReplyingTo.vue index e69cf8e2..2b6fc03b 100644 --- a/components/status/StatusReplyingTo.vue +++ b/components/status/StatusReplyingTo.vue @@ -1,9 +1,10 @@