fix: status type

This commit is contained in:
userquin 2023-01-08 09:45:12 +01:00
parent a2a6b84ba7
commit 1e505711a1

View file

@ -1,4 +1,4 @@
import type { Status } from 'masto'
import type { mastodon } from 'masto'
import { STORAGE_KEY_LAST_SCROLL_POSITION } from '~/constants'
@ -28,7 +28,7 @@ export default defineNuxtPlugin(() => {
rememberAccountPosition: (account: string) => {
lastStatus.value[useRoute().fullPath] = { id: account, type: 'follow' }
},
rememberStatusPosition: (status: Status) => {
rememberStatusPosition: (status: mastodon.v1.Status) => {
lastStatus.value[useRoute().fullPath] = { id: status.id, type: 'status' }
},
},