From 08221fdda75b657b006d24d8d630d10010cb2bda Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 15 Apr 2019 20:41:56 +0900 Subject: [PATCH] Fix bug --- src/client/app/common/views/components/mention.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/app/common/views/components/mention.vue b/src/client/app/common/views/components/mention.vue index e1f67282b6..f212fd3ca5 100644 --- a/src/client/app/common/views/components/mention.vue +++ b/src/client/app/common/views/components/mention.vue @@ -36,7 +36,9 @@ export default Vue.extend({ return this.host === localHost ? `@${this.username}` : `@${this.username}@${toUnicode(this.host)}`; }, isMe(): boolean { - return this.$store.getters.isSignedIn && this.canonical.toLowerCase() === `@${this.$store.state.i.username}@${toUnicode(localHost)}`.toLowerCase(); + return this.$store.getters.isSignedIn && ( + `@${this.username}@${toUnicode(this.host)}` === `@${this.$store.state.i.username}@${toUnicode(localHost)}`.toLowerCase() + ); } }, methods: {