Compare commits

..

No commits in common. "3973105691db2ff681f234b612d2c8101858f80d" and "b687c355d06eba270516fc1015f7d2da70817b78" have entirely different histories.

3 changed files with 14 additions and 16 deletions

View file

@ -76,9 +76,7 @@ const ChatMessage = {
return !!this.message.user
},
author() {
const accountId = this.isStatus
? this.message.user.id
: this.message.account_id
const accountId = this.isStatus ? this.message.user.id : this.message.account_id
return this.$store.getters.findUser(accountId)
},

View file

@ -51,7 +51,7 @@
@pause="$emit('mediapause', attachment.id)"
/>
<div
v-if="draft.poll?.options"
v-if="draft.poll.options"
class="poll-indicator-container"
:title="$t('drafts.poll_tooltip')"
>

View file

@ -266,9 +266,9 @@ const PostStatusForm = {
mentionsString() {
if (this.statusType !== 'reply' && this.statusType !== 'mention')
return ''
let allAttentions = [...(this.newStatus.mentions || [])]
let allAttentions = [...(this.attentions || [])]
if (this.repliedUser) allAttentions.unshift(this.repliedUser)
allAttentions.unshift(this.repliedUser)
allAttentions = uniqBy(allAttentions, 'id')
allAttentions = reject(allAttentions, { id: this.currentUser.id })
@ -303,11 +303,12 @@ const PostStatusForm = {
if (this.mentionsLine) {
defaultNewStatus.status = statusText
defaultNewStatus.mentions = this.mentionsString.trim()
} else {
defaultNewStatus.status = this.mentionsString + statusText
defaultNewStatus.mentions = ''
}
defaultNewStatus.mentions = this.attentions
defaultNewStatus.spoilerText = this.repliedSubjectString ?? ''
defaultNewStatus.nsfw = this.userDefaultSensitive
defaultNewStatus.visibility = scope
@ -590,8 +591,7 @@ const PostStatusForm = {
// Composing
onMentionsLineUpdate(e) {
if (this.mentionsLineReadOnly) return
// TODO
//this.newStatus.mentions = e
this.newStatus.mentionsLine = e
},
changeVis(visibility) {
this.newStatus.visibility = visibility
@ -599,13 +599,13 @@ const PostStatusForm = {
clearStatus() {
this.saveInhibited = true
this.newStatus.status = ''
this.newStatus.mentions = null
this.newStatus.spoilerText = ''
this.newStatus.files = []
this.newStatus.poll = null
this.newStatus.quote = null
this.newStatus.mediaDescriptions = {}
this.$refs.mediaUpload && this.$refs.mediaUpload.clearFile()
;(this.newStatus.mentionsLine = ''),
(this.newStatus.spoilerText = ''),
(this.newStatus.files = []),
(this.newStatus.poll = null),
(this.newStatus.quote = null),
(this.newStatus.mediaDescriptions = {}),
this.$refs.mediaUpload && this.$refs.mediaUpload.clearFile()
this.clearQuoteForm()
if (this.preserveFocus) {
this.$nextTick(() => {