Merge branch 'users-statuses-pinia' into shigusegubu-themes3
This commit is contained in:
commit
003ca8089b
1 changed files with 6 additions and 3 deletions
|
|
@ -41,14 +41,17 @@ const postStatus = ({
|
||||||
preview,
|
preview,
|
||||||
idempotencyKey,
|
idempotencyKey,
|
||||||
}).then(({ data, timestamp }) => {
|
}).then(({ data, timestamp }) => {
|
||||||
if (!preview)
|
if (!preview) {
|
||||||
useStatusesStore().addNewStatuses({
|
useStatusesStore().addNewStatuses({
|
||||||
timestamp,
|
timestamp,
|
||||||
statuses: [data],
|
statuses: [data],
|
||||||
timeline: 'friends',
|
})
|
||||||
|
useTimelinesStore().addStatusesToTimeline('friends', undefined, {
|
||||||
|
statuses: [data.id],
|
||||||
showImmediately: true,
|
showImmediately: true,
|
||||||
noIdUpdate: true, // To prevent missing notices on next pull.
|
noIdUpdate: true, // To prevent missing notices on next pull.
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
return data
|
return data
|
||||||
})
|
})
|
||||||
|
|
@ -82,7 +85,7 @@ const editStatus = ({
|
||||||
timestamp,
|
timestamp,
|
||||||
})
|
})
|
||||||
useTimelinesStore().addStatusesToTimeline('friends', undefined, {
|
useTimelinesStore().addStatusesToTimeline('friends', undefined, {
|
||||||
statuses: [data],
|
statuses: [data.id],
|
||||||
showImmediately: true,
|
showImmediately: true,
|
||||||
noIdUpdate: true, // To prevent missing notices on next pull.
|
noIdUpdate: true, // To prevent missing notices on next pull.
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue