From 2b7f12613ec04e3ce8be62b169457ad62aa83a65 Mon Sep 17 00:00:00 2001 From: Alexander Tumin Date: Tue, 1 Mar 2022 00:35:00 +0300 Subject: Add bot indication to user icon on statuses --- src/components/status/status.js | 6 ++++++ src/components/status/status.vue | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'src/components/status') diff --git a/src/components/status/status.js b/src/components/status/status.js index ba85114a..282e85fb 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -169,6 +169,9 @@ const Status = { botStatus () { return this.status.user.bot }, + botIndicator () { + return this.botStatus && !this.hideBotIndication + }, mentionsLine () { if (!this.headTailLinks) return [] const writtenSet = new Set(this.headTailLinks.writtenMentions.map(_ => _.url)) @@ -301,6 +304,9 @@ const Status = { muteBotStatuses () { return this.mergedConfig.muteBotStatuses }, + hideBotIndication () { + return this.mergedConfig.hideBotIndication + }, currentUser () { return this.$store.state.users.currentUser }, diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 3bb29db6..8f51a778 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -77,6 +77,7 @@ @@ -124,6 +125,7 @@ @click.stop.prevent.capture.native="toggleUserExpanded" >
- +
-- cgit v1.2.3-70-g09d2