forked from Mirrors/elk
fix: status type
This commit is contained in:
parent
a2a6b84ba7
commit
1e505711a1
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
import type { Status } from 'masto'
|
import type { mastodon } from 'masto'
|
||||||
|
|
||||||
import { STORAGE_KEY_LAST_SCROLL_POSITION } from '~/constants'
|
import { STORAGE_KEY_LAST_SCROLL_POSITION } from '~/constants'
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ export default defineNuxtPlugin(() => {
|
||||||
rememberAccountPosition: (account: string) => {
|
rememberAccountPosition: (account: string) => {
|
||||||
lastStatus.value[useRoute().fullPath] = { id: account, type: 'follow' }
|
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' }
|
lastStatus.value[useRoute().fullPath] = { id: status.id, type: 'status' }
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue