i think it's usable now
This commit is contained in:
parent
5b9ab6b1ea
commit
37f501108b
42 changed files with 296 additions and 1295 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { map } from 'lodash'
|
||||
|
||||
import { useStatusesStore } from 'src/stores/statuses.js'
|
||||
import { useUsersStore } from 'src/stores/users.js'
|
||||
|
||||
import {
|
||||
|
|
@ -38,9 +39,10 @@ const postStatus = ({
|
|||
poll,
|
||||
preview,
|
||||
idempotencyKey,
|
||||
}).then(({ data }) => {
|
||||
}).then(({ data, timestamp }) => {
|
||||
if (!preview)
|
||||
store.dispatch('addNewStatuses', {
|
||||
useStatusesStore().addNewStatuses({
|
||||
timestamp,
|
||||
statuses: [data],
|
||||
timeline: 'friends',
|
||||
showImmediately: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue