Bladeren bron

fix bot indicator appearing on retweeter avatar

Henry Jameson 2 jaren geleden
bovenliggende
commit
4e2fd7baf9
2 gewijzigde bestanden met toevoegingen van 7 en 1 verwijderingen
  1. 6 0
      src/components/status/status.js
  2. 1 1
      src/components/status/status.vue

+ 6 - 0
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))

+ 1 - 1
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"
         />