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