diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-15 20:41:56 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-15 20:41:56 +0900 |
| commit | 08221fdda75b657b006d24d8d630d10010cb2bda (patch) | |
| tree | 5e66b518b654eecae8acf1b3afdd0c9ccad091d7 /src | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| download | sharkey-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.vue | 4 |
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: { |