Merge branch 'fix/profile-mentions' into 'develop'

Fix profile mentions causing a 422 error

See merge request pleroma/pleroma-fe!1919
This commit is contained in:
HJ 2024-06-07 17:38:53 +00:00
commit 88f95e30e1
3 changed files with 5 additions and 3 deletions

View file

@ -0,0 +1 @@
Fix profile mentions causing a 422 error

View file

@ -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)
}

View file

@ -225,7 +225,7 @@ export default {
this.$store.dispatch('setCurrentMedia', attachment)
},
mentionUser () {
this.$store.dispatch('openPostStatusModal', { replyTo: true, repliedUser: this.user })
this.$store.dispatch('openPostStatusModal', { profileMention: true, repliedUser: this.user })
},
onAvatarClickHandler (e) {
if (this.onAvatarClick) {