summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-09-25 20:44:26 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-09-25 20:44:26 +0900
commit5da18ba535244ad4d4b4498c39e495d4428b5dff (patch)
tree25c61f591f9cf57df1966440588424e4a94f9068 /src
parentCheck meta key (diff)
downloadsharkey-5da18ba535244ad4d4b4498c39e495d4428b5dff.tar.gz
sharkey-5da18ba535244ad4d4b4498c39e495d4428b5dff.tar.bz2
sharkey-5da18ba535244ad4d4b4498c39e495d4428b5dff.zip
Fix #2766
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/views/components/note-menu.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/app/common/views/components/note-menu.vue b/src/client/app/common/views/components/note-menu.vue
index a3e80e33de..c8ed1225cc 100644
--- a/src/client/app/common/views/components/note-menu.vue
+++ b/src/client/app/common/views/components/note-menu.vue
@@ -28,7 +28,7 @@ export default Vue.extend({
}];
if (this.note.userId == this.$store.state.i.id) {
- if (this.$store.state.i.pinnedNoteIds.includes(this.note.id)) {
+ if ((this.$store.state.i.pinnedNoteIds || []).includes(this.note.id)) {
items.push({
icon: '%fa:thumbtack%',
text: '%i18n:@unpin%',