forked from AkkomaGang/akkoma-fe
Merge branch 'develop' into csaurus/pleroma-fe-fix-chrome-auto-loading
This commit is contained in:
commit
3ffb17c0ae
3 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@ const chatPanel = {
|
||||||
return {
|
return {
|
||||||
currentMessage: '',
|
currentMessage: '',
|
||||||
channel: null,
|
channel: null,
|
||||||
collapsed: false
|
collapsed: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
@ -45,7 +45,7 @@ export const prepareStatus = (status) => {
|
||||||
if (status.nsfw === undefined) {
|
if (status.nsfw === undefined) {
|
||||||
status.nsfw = isNsfw(status)
|
status.nsfw = isNsfw(status)
|
||||||
if (status.retweeted_status) {
|
if (status.retweeted_status) {
|
||||||
status.retweeted_status.nsfw = status.nsfw
|
status.nsfw = status.retweeted_status.nsfw
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
|
||||||
|
|
||||||
if (result.new) {
|
if (result.new) {
|
||||||
if (statusType(status) === 'retweet' && status.retweeted_status.user.id === user.id) {
|
if (statusType(status) === 'retweet' && status.retweeted_status.user.id === user.id) {
|
||||||
addNotification({ type: 'repeat', status: status.retweeted_status, action: status })
|
addNotification({ type: 'repeat', status: status, action: status })
|
||||||
}
|
}
|
||||||
|
|
||||||
// We are mentioned in a post
|
// We are mentioned in a post
|
||||||
|
|
|
@ -297,7 +297,7 @@ describe('The Statuses module', () => {
|
||||||
mutations.addNewStatuses(state, { statuses: [retweet], user })
|
mutations.addNewStatuses(state, { statuses: [retweet], user })
|
||||||
|
|
||||||
expect(state.notifications.length).to.eql(1)
|
expect(state.notifications.length).to.eql(1)
|
||||||
expect(state.notifications[0].status).to.eql(status)
|
expect(state.notifications[0].status).to.eql(retweet)
|
||||||
expect(state.notifications[0].action).to.eql(retweet)
|
expect(state.notifications[0].action).to.eql(retweet)
|
||||||
expect(state.notifications[0].type).to.eql('repeat')
|
expect(state.notifications[0].type).to.eql('repeat')
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue