refactor(publish): extract to composables

This commit is contained in:
三咲智子 Kevin Deng 2023-01-10 21:22:39 +08:00
parent df37e7c4de
commit 0ef99f2c8e
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
5 changed files with 190 additions and 122 deletions

View file

@ -63,3 +63,12 @@ export function getStatusInReplyToRoute(status: mastodon.v1.Status) {
},
})
}
export const navigateToStatus = ({ status, focusReply = false }: {
status: mastodon.v1.Status
focusReply?: boolean
}) =>
navigateTo({
path: getStatusRoute(status).href,
state: { focusReply },
})