diff --git a/src/components/emoji_picker/emoji_picker.js b/src/components/emoji_picker/emoji_picker.js index c0391f6c..9a2307cb 100644 --- a/src/components/emoji_picker/emoji_picker.js +++ b/src/components/emoji_picker/emoji_picker.js @@ -7,7 +7,7 @@ import { faStickyNote, faSmileBeam } from '@fortawesome/free-solid-svg-icons' -import { trim, escapeRegExp, startCase } from 'lodash' +import { trim, escapeRegExp, startCase, debounce } from 'lodash' library.add( faBoxOpen, @@ -42,6 +42,9 @@ const EmojiPicker = { EmojiGrid }, methods: { + debouncedSearch: debounce(function (e) { + this.keyword = e.target.value + }, 500), onStickerUploaded (e) { this.$emit('sticker-uploaded', e) }, @@ -85,17 +88,6 @@ const EmojiPicker = { activeGroupView () { return this.showingStickers ? '' : this.activeGroup }, - stickersAvailable () { - if (this.$store.state.instance.stickers) { - return this.$store.state.instance.stickers.length > 0 - } - return 0 - }, - filteredEmoji () { - return this.filterByKeyword( - this.$store.state.instance.customEmoji || [] - ) - }, emojis () { const recentEmojis = this.$store.getters.recentEmojis const standardEmojis = this.$store.state.instance.emoji || [] diff --git a/src/components/emoji_picker/emoji_picker.vue b/src/components/emoji_picker/emoji_picker.vue index fe2e39b2..5a1088c0 100644 --- a/src/components/emoji_picker/emoji_picker.vue +++ b/src/components/emoji_picker/emoji_picker.vue @@ -44,11 +44,10 @@ > this.$store.dispatch('openPostStatusModal', { - isRedraft: true, - statusId: this.status.id, - subject: data.spoiler_text, - statusText: data.text, - statusIsSensitive: this.status.nsfw, - statusPoll: this.status.poll, - statusFiles: [...this.status.attachments], - statusScope: this.status.visibility, - statusLanguage: this.status.language, - statusContentType: data.content_type - })) + .then(data => { + let repliedUserId = this.status.in_reply_to_user_id; + let repliedUser = this.status.attentions.filter(user => + user.id === repliedUserId); + this.$store.dispatch('openPostStatusModal', { + isRedraft: true, + attentions: this.status.attentions, + statusId: this.status.id, + subject: data.spoiler_text, + statusText: data.text, + statusIsSensitive: this.status.nsfw, + statusPoll: this.status.poll, + statusFiles: [...this.status.attachments], + statusScope: this.status.visibility, + statusLanguage: this.status.language, + statusContentType: data.content_type, + replyTo: this.status.in_reply_to_status_id, + repliedUser: repliedUser + }) + }) this.doDeleteStatus() }, showRedraftStatusConfirmDialog () { diff --git a/src/components/favorite_button/favorite_button.vue b/src/components/favorite_button/favorite_button.vue index 7d23572e..16bf441e 100644 --- a/src/components/favorite_button/favorite_button.vue +++ b/src/components/favorite_button/favorite_button.vue @@ -55,6 +55,9 @@ .interactive { .svg-inline--fa { + @media (prefers-reduced-motion: reduce) { + animation: unset; + } animation-duration: 0.6s; } diff --git a/src/components/list/list.vue b/src/components/list/list.vue index a6223cce..ef66e051 100644 --- a/src/components/list/list.vue +++ b/src/components/list/list.vue @@ -1,9 +1,13 @@