mirror of
				https://github.com/tooot-app/app
				synced 2025-06-05 22:19:13 +02:00 
			
		
		
		
	Fixed
This commit is contained in:
		| @@ -90,6 +90,9 @@ const AccountInformation: React.FC<Props> = ({ | |||||||
|     }, |     }, | ||||||
|     onError: (err, _, oldData) => { |     onError: (err, _, oldData) => { | ||||||
|       queryClient.setQueryData(relationshipQueryKey, oldData) |       queryClient.setQueryData(relationshipQueryKey, oldData) | ||||||
|  |     }, | ||||||
|  |     onSettled: () => { | ||||||
|  |       queryClient.invalidateQueries(['Following']) | ||||||
|     } |     } | ||||||
|   }) |   }) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -84,31 +84,17 @@ export const timelineFetch = async ({ | |||||||
|       return Promise.resolve({ toots: res.body }) |       return Promise.resolve({ toots: res.body }) | ||||||
|  |  | ||||||
|     case 'Account_Default': |     case 'Account_Default': | ||||||
|       if (pageParam) { |       if (pageParam && pageParam.direction === 'next') { | ||||||
|         switch (pageParam.direction) { |         res = await client({ | ||||||
|           case 'prev': |           method: 'get', | ||||||
|             res = await client({ |           instance: 'local', | ||||||
|               method: 'get', |           url: `accounts/${account}/statuses`, | ||||||
|               instance: 'local', |           params: { | ||||||
|               url: `accounts/${account}/statuses`, |             exclude_replies: 'true', | ||||||
|               params: { |             ...params | ||||||
|                 pinned: 'true', |           } | ||||||
|                 ...params |         }) | ||||||
|               } |         return Promise.resolve({ toots: res.body }) | ||||||
|             }) |  | ||||||
|             return Promise.resolve({ toots: res.body }) |  | ||||||
|           case 'next': |  | ||||||
|             res = await client({ |  | ||||||
|               method: 'get', |  | ||||||
|               instance: 'local', |  | ||||||
|               url: `accounts/${account}/statuses`, |  | ||||||
|               params: { |  | ||||||
|                 exclude_replies: 'true', |  | ||||||
|                 ...params |  | ||||||
|               } |  | ||||||
|             }) |  | ||||||
|             return Promise.resolve({ toots: res.body }) |  | ||||||
|         } |  | ||||||
|       } else { |       } else { | ||||||
|         res = await client({ |         res = await client({ | ||||||
|           method: 'get', |           method: 'get', | ||||||
| @@ -143,12 +129,14 @@ export const timelineFetch = async ({ | |||||||
|       return Promise.resolve({ toots: res.body }) |       return Promise.resolve({ toots: res.body }) | ||||||
|  |  | ||||||
|     case 'Account_Media': |     case 'Account_Media': | ||||||
|  |       console.log(account) | ||||||
|       res = await client({ |       res = await client({ | ||||||
|         method: 'get', |         method: 'get', | ||||||
|         instance: 'local', |         instance: 'local', | ||||||
|         url: `accounts/${account}/statuses`, |         url: `accounts/${account}/statuses`, | ||||||
|         params: { |         params: { | ||||||
|           only_media: 'true' |           only_media: 'true', | ||||||
|  |           ...params | ||||||
|         } |         } | ||||||
|       }) |       }) | ||||||
|       return Promise.resolve({ toots: res.body }) |       return Promise.resolve({ toots: res.body }) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user