feat: status route using full account (#115)

This commit is contained in:
patak 2022-11-26 00:49:56 +01:00 committed by GitHub
parent b36a803eef
commit 4bb2910761
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 104 additions and 81 deletions

View file

@ -58,7 +58,11 @@ export function getAccountPath(account: Account) {
}
export function getStatusPath(status: Status) {
return `/status/${status.id}`
return `/${getFullHandle(status.account)}/${status.id}`
}
export function getStatusInReplyToPath(status: Status) {
return `/status/${status.inReplyToId}`
}
export function useAccountHandle(account: Account, fullServer = true) {