small refactor+lint in poster
This commit is contained in:
parent
f1ac6fab61
commit
00de60eec4
1 changed files with 9 additions and 12 deletions
|
|
@ -36,19 +36,16 @@ const postStatus = ({
|
|||
poll,
|
||||
preview,
|
||||
idempotencyKey,
|
||||
})
|
||||
.then(({ data }) => {
|
||||
if (preview) return data
|
||||
|
||||
store.dispatch('addNewStatuses', {
|
||||
statuses: [data],
|
||||
timeline: 'friends',
|
||||
showImmediately: true,
|
||||
noIdUpdate: true, // To prevent missing notices on next pull.
|
||||
})
|
||||
|
||||
return data
|
||||
}).then(({ data }) => {
|
||||
if (!preview) store.dispatch('addNewStatuses', {
|
||||
statuses: [data],
|
||||
timeline: 'friends',
|
||||
showImmediately: true,
|
||||
noIdUpdate: true, // To prevent missing notices on next pull.
|
||||
})
|
||||
|
||||
return data
|
||||
})
|
||||
}
|
||||
|
||||
const editStatus = ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue