small changes
This commit is contained in:
parent
55324aea13
commit
736c1ffb8e
2 changed files with 7 additions and 7 deletions
|
|
@ -274,10 +274,10 @@ export const fetchStatusHistory = ({ status, credentials }) =>
|
||||||
promisedRequest({
|
promisedRequest({
|
||||||
url: MASTODON_STATUS_HISTORY_URL(status.id),
|
url: MASTODON_STATUS_HISTORY_URL(status.id),
|
||||||
credentials,
|
credentials,
|
||||||
}).then(({ data }) => {
|
}).then(({ data, ...rest }) => {
|
||||||
return [...data].reverse().map((item) => {
|
return [...data].reverse().map((item) => {
|
||||||
item.originalStatus = status
|
item.originalStatus = status
|
||||||
return parseStatus(item)
|
return { ...rest, data: parseStatus(item) }
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,11 +36,11 @@ const fetchAndUpdate = ({
|
||||||
timeline = 'friends',
|
timeline = 'friends',
|
||||||
older = false,
|
older = false,
|
||||||
showImmediately = false,
|
showImmediately = false,
|
||||||
userId = false,
|
userId,
|
||||||
listId = false,
|
listId,
|
||||||
statusId = false,
|
statusId,
|
||||||
bookmarkFolderId = false,
|
bookmarkFolderId,
|
||||||
tag = false,
|
tag,
|
||||||
maxId,
|
maxId,
|
||||||
sinceId,
|
sinceId,
|
||||||
}) => {
|
}) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue