Merge branch 'develop' into csaurus/pleroma-fe-fix-chrome-auto-loading

This commit is contained in:
Roger Braun 2018-04-27 09:59:31 +02:00
commit 3ffb17c0ae
3 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ const chatPanel = {
return {
currentMessage: '',
channel: null,
collapsed: false
collapsed: true
}
},
computed: {

View File

@ -45,7 +45,7 @@ export const prepareStatus = (status) => {
if (status.nsfw === undefined) {
status.nsfw = isNsfw(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 (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

View File

@ -297,7 +297,7 @@ describe('The Statuses module', () => {
mutations.addNewStatuses(state, { statuses: [retweet], user })
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].type).to.eql('repeat')
})