diff --git a/src/api/public.js b/src/api/public.js index 5cfd529cd..e5f2cc340 100644 --- a/src/api/public.js +++ b/src/api/public.js @@ -274,10 +274,10 @@ export const fetchStatusHistory = ({ status, credentials }) => promisedRequest({ url: MASTODON_STATUS_HISTORY_URL(status.id), credentials, - }).then(({ data }) => { + }).then(({ data, ...rest }) => { return [...data].reverse().map((item) => { item.originalStatus = status - return parseStatus(item) + return { ...rest, data: parseStatus(item) } }) }) diff --git a/src/services/timeline_fetcher/timeline_fetcher.service.js b/src/services/timeline_fetcher/timeline_fetcher.service.js index efa06258d..d65897966 100644 --- a/src/services/timeline_fetcher/timeline_fetcher.service.js +++ b/src/services/timeline_fetcher/timeline_fetcher.service.js @@ -36,11 +36,11 @@ const fetchAndUpdate = ({ timeline = 'friends', older = false, showImmediately = false, - userId = false, - listId = false, - statusId = false, - bookmarkFolderId = false, - tag = false, + userId, + listId, + statusId, + bookmarkFolderId, + tag, maxId, sinceId, }) => {