quote support

This commit is contained in:
Henry Jameson 2026-07-23 16:06:18 +03:00
commit c4a88dd19f
3 changed files with 22 additions and 0 deletions

View file

@ -1,5 +1,6 @@
import { mapState as mapPiniaState } from 'pinia'
import { mapState } from 'vuex'
import { defineAsyncComponent } from 'vue'
import Attachment from 'src/components/attachment/attachment.vue'
import MentionLink from 'src/components/mention_link/mention_link.vue'
@ -59,6 +60,7 @@ const ChatMessage = {
UserPopover,
StatusPopover,
MentionLink,
Quote: defineAsyncComponent(() => import('src/components/quote/quote.vue')),
Timeago,
},
computed: {
@ -115,6 +117,15 @@ const ChatMessage = {
return user ? user.statusnet_profile_url : 'NOT_FOUND'
}
},
quoteId() {
return this.message.quote_id
},
quoteUrl() {
return this.message.quote_url
},
quoteVisible() {
return this.message.quote_visible
},
messageForStatusContent() {
return {
summary: '',