This commit is contained in:
xmflsct 2023-01-14 15:21:31 +01:00
parent 58c96c4c08
commit e5e74410d0
2 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "tooot",
"version": "4.8.2",
"version": "4.8.3",
"description": "tooot for Mastodon",
"author": "xmflsct <me@xmflsct.com>",
"license": "GPL-3.0-or-later",

View File

@ -11,7 +11,7 @@ import apiInstance from '@utils/api/instance'
import { featureCheck } from '@utils/helpers/featureCheck'
import { useNavState } from '@utils/navigation/navigators'
import { queryClient } from '@utils/queryHooks'
import { getAccountStorage } from '@utils/storage/actions'
import { getAccountStorage, setAccountStorage } from '@utils/storage/actions'
import { AxiosError } from 'axios'
import { uniqBy } from 'lodash'
import { searchLocalStatus } from './search'
@ -85,6 +85,11 @@ export const queryFunctionTimeline = async ({
url: 'timelines/home',
params
}).then(res => {
if (marker && !res.body.length) {
setAccountStorage([{ key: 'read_marker_following', value: undefined }])
return Promise.reject()
}
if (!page.showBoosts || !page.showReplies) {
return {
...res,