small refactor+lint in poster

This commit is contained in:
Henry Jameson 2026-06-22 20:19:54 +03:00
commit 00de60eec4

View file

@ -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 = ({