post editing #57

Closed
Ghost wants to merge 23 commits from (deleted):feat/editing into develop
Showing only changes of commit 8b7bcd2d30 - Show all commits

View file

@ -99,7 +99,12 @@ const api = {
timeline: 'friends' timeline: 'friends'
}) })
} else if (message.event === 'status.update') { } else if (message.event === 'status.update') {
// Insert dispatch code here. dispatch('addNewStatuses', {
statuses: [message.status],
userId: false,
showImmediately: message.status.id in timelineData.visibleStatusesObject,
timeline: 'friends'
})
} else if (message.event === 'delete') { } else if (message.event === 'delete') {
dispatch('deleteStatusById', message.id) dispatch('deleteStatusById', message.id)
} }