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,
|
poll,
|
||||||
preview,
|
preview,
|
||||||
idempotencyKey,
|
idempotencyKey,
|
||||||
})
|
}).then(({ data }) => {
|
||||||
.then(({ data }) => {
|
if (!preview) store.dispatch('addNewStatuses', {
|
||||||
if (preview) return data
|
statuses: [data],
|
||||||
|
timeline: 'friends',
|
||||||
store.dispatch('addNewStatuses', {
|
showImmediately: true,
|
||||||
statuses: [data],
|
noIdUpdate: true, // To prevent missing notices on next pull.
|
||||||
timeline: 'friends',
|
|
||||||
showImmediately: true,
|
|
||||||
noIdUpdate: true, // To prevent missing notices on next pull.
|
|
||||||
})
|
|
||||||
|
|
||||||
return data
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
return data
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const editStatus = ({
|
const editStatus = ({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue