commit: edf5e36bf877a49daefbb742fea93cafaadc1031
parent 087a7c64343cff85498e263e4d349e2335b87b82
Author: tusooa <tusooa@kazv.moe>
Date: Thu, 22 Aug 2024 20:32:45 -0400
Fix profile mention in drafts
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js
@@ -144,7 +144,7 @@ const PostStatusForm = {
const { scopeCopy } = this.$store.getters.mergedConfig
- const [statusType, refId] = typeAndRefId({ replyTo: this.replyTo, profileMention: this.profileMention, statusId: this.statusId })
+ const [statusType, refId] = typeAndRefId({ replyTo: this.replyTo, profileMention: this.profileMention && this.repliedUser?.id, statusId: this.statusId })
// If we are starting a new post, do not associate it with old drafts
let statusParams = !this.disableDraft && (this.draftId || statusType !== 'new') ? this.getDraft(statusType, refId) : null