aboutsummaryrefslogtreecommitdiff
path: root/src/components/post_status_form
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2024-06-07 17:38:53 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2024-06-07 17:38:53 +0000
commit88f95e30e1f5528bcc97a6e26bc20469e0d896d1 (patch)
treee0119c465317d82ffc653d2a5948618d8fff5e46 /src/components/post_status_form
parente33734b4747c8484530644d759759d53266f9b0e (diff)
parent631c2532aafdfcbdb19ea3d48c9ce143ce7ef376 (diff)
Merge branch 'fix/profile-mentions' into 'develop'
Fix profile mentions causing a 422 error See merge request pleroma/pleroma-fe!1919
Diffstat (limited to 'src/components/post_status_form')
-rw-r--r--src/components/post_status_form/post_status_form.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js
index 5564b118..563dfb96 100644
--- a/src/components/post_status_form/post_status_form.js
+++ b/src/components/post_status_form/post_status_form.js
@@ -87,7 +87,8 @@ const PostStatusForm = {
'fileLimit',
'submitOnEnter',
'emojiPickerPlacement',
- 'optimisticPosting'
+ 'optimisticPosting',
+ 'profileMention'
],
emits: [
'posted',
@@ -125,7 +126,7 @@ const PostStatusForm = {
const { scopeCopy } = this.$store.getters.mergedConfig
- if (this.replyTo) {
+ if (this.replyTo || this.profileMention) {
const currentUser = this.$store.state.users.currentUser
statusText = buildMentionsString({ user: this.repliedUser, attentions: this.attentions }, currentUser)
}