summaryrefslogtreecommitdiff
path: root/src/client/app/common/scripts/note-mixin.ts
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2018-12-27 22:54:50 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2018-12-27 22:54:50 +0900
commit6943c7d2d81625f479c3f8ea9955b5cedc72f786 (patch)
treebb6eab817440c31cc45b803be05755798abd5391 /src/client/app/common/scripts/note-mixin.ts
parentFix kao (diff)
downloadsharkey-6943c7d2d81625f479c3f8ea9955b5cedc72f786.tar.gz
sharkey-6943c7d2d81625f479c3f8ea9955b5cedc72f786.tar.bz2
sharkey-6943c7d2d81625f479c3f8ea9955b5cedc72f786.zip
Resolve #3770
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
Diffstat (limited to 'src/client/app/common/scripts/note-mixin.ts')
-rw-r--r--src/client/app/common/scripts/note-mixin.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/app/common/scripts/note-mixin.ts b/src/client/app/common/scripts/note-mixin.ts
index dea36cd2a5..39e23f94ea 100644
--- a/src/client/app/common/scripts/note-mixin.ts
+++ b/src/client/app/common/scripts/note-mixin.ts
@@ -65,6 +65,10 @@ export default (opts: Opts = {}) => ({
return this.isRenote ? this.note.renote : this.note;
},
+ isMyNote(): boolean {
+ return this.$store.getters.isSignedIn && (this.$store.state.i.id === this.appearNote.userId);
+ },
+
reactionsCount(): number {
return this.appearNote.reactionCounts
? sum(Object.values(this.appearNote.reactionCounts))