summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-04-15 20:41:56 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-04-15 20:41:56 +0900
commit08221fdda75b657b006d24d8d630d10010cb2bda (patch)
tree5e66b518b654eecae8acf1b3afdd0c9ccad091d7 /src
parentMerge branch 'develop' of https://github.com/syuilo/misskey into develop (diff)
downloadsharkey-08221fdda75b657b006d24d8d630d10010cb2bda.tar.gz
sharkey-08221fdda75b657b006d24d8d630d10010cb2bda.tar.bz2
sharkey-08221fdda75b657b006d24d8d630d10010cb2bda.zip
Fix bug
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/views/components/mention.vue4
1 files changed, 3 insertions, 1 deletions
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: {