From d8aa7ec97e1b31ce92ada9ad2d8a1f74d47b481e Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 21 Jul 2026 18:56:20 +0300 Subject: [PATCH] fixes --- src/components/chat_message/chat_message.js | 11 ++++++----- src/components/chat_message/chat_message.vue | 2 ++ src/components/status_body/status_body.scss | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/chat_message/chat_message.js b/src/components/chat_message/chat_message.js index 8444899e2..f88a60010 100644 --- a/src/components/chat_message/chat_message.js +++ b/src/components/chat_message/chat_message.js @@ -79,17 +79,18 @@ const ChatMessage = { }, isCustomReply() { if (!this.previousItem) return false + if (!this.chatItem.data.in_reply_to_status_id) return false console.log('==') - console.log('PREV', toValue(this.previousItem.data.raw_html)) - console.log('CURR', toValue(this.chatItem.data.raw_html)) + console.log('PREV', toValue(this.previousItem.data.text)) + console.log('CURR', toValue(this.chatItem.data.text)) return ( this.previousItem.data.id !== this.chatItem.data.in_reply_to_status_id ) }, customReplyTo() { - return find(this.$store.state.statuses.allStatuses, { - id: this.chatItem.data.in_reply_to_status_id, - }) + return this.$store.state.statuses.allStatusesObject[ + this.chatItem.data.in_reply_to_status_id + ] }, messageForStatusContent() { return { diff --git a/src/components/chat_message/chat_message.vue b/src/components/chat_message/chat_message.vue index b1fa85fe7..91ad9a4eb 100644 --- a/src/components/chat_message/chat_message.vue +++ b/src/components/chat_message/chat_message.vue @@ -37,7 +37,9 @@ /> {{ $t('status.reply_to') }} +