commit: 4e2fd7baf9a2c1d1e02ada6100b8c9aa91ffb81a
parent 6f1d953642473412c094e5b723eb479e2b19a542
Author: Henry Jameson <me@hjkos.com>
Date: Mon, 21 Mar 2022 20:39:56 +0200
fix bot indicator appearing on retweeter avatar
Diffstat:
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/components/status/status.js b/src/components/status/status.js
@@ -225,12 +225,18 @@ const Status = {
muteWordHits () {
return muteWordHits(this.status, this.muteWords)
},
+ rtBotStatus () {
+ return this.statusoid.user.bot
+ },
botStatus () {
return this.status.user.bot
},
botIndicator () {
return this.botStatus && !this.hideBotIndication
},
+ rtBotIndicator () {
+ return this.rtBotStatus && !this.hideBotIndication
+ },
mentionsLine () {
if (!this.headTailLinks) return []
const writtenSet = new Set(this.headTailLinks.writtenMentions.map(_ => _.url))
diff --git a/src/components/status/status.vue b/src/components/status/status.vue
@@ -77,7 +77,7 @@
<UserAvatar
v-if="retweet"
class="left-side repeater-avatar"
- :bot="botIndicator"
+ :bot="rtBotIndicator"
:better-shadow="betterShadow"
:user="statusoid.user"
/>