diff --git a/components/status/StatusReplyingTo.vue b/components/status/StatusReplyingTo.vue index d27a745f3..66ae05c22 100644 --- a/components/status/StatusReplyingTo.vue +++ b/components/status/StatusReplyingTo.vue @@ -12,7 +12,7 @@ const account = asyncComputed(() => fetchAccount(status.inReplyToAccountId!))
diff --git a/composables/masto.ts b/composables/masto.ts index a7f742f2e..e9e36660d 100644 --- a/composables/masto.ts +++ b/composables/masto.ts @@ -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) { diff --git a/pages/@[account].vue b/pages/@[account].vue deleted file mode 100644 index 57d5545a0..000000000 --- a/pages/@[account].vue +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/pages/@[account]/[status].vue b/pages/@[account]/[status].vue new file mode 100644 index 000000000..92726b56e --- /dev/null +++ b/pages/@[account]/[status].vue @@ -0,0 +1,41 @@ + + + diff --git a/pages/@[account]/index.vue b/pages/@[account]/index.vue index 543699eb2..57d5545a0 100644 --- a/pages/@[account]/index.vue +++ b/pages/@[account]/index.vue @@ -1,26 +1,25 @@ diff --git a/pages/@[account]/followers.vue b/pages/@[account]/index/followers.vue similarity index 100% rename from pages/@[account]/followers.vue rename to pages/@[account]/index/followers.vue diff --git a/pages/@[account]/following.vue b/pages/@[account]/index/following.vue similarity index 100% rename from pages/@[account]/following.vue rename to pages/@[account]/index/following.vue diff --git a/pages/@[account]/index/index.vue b/pages/@[account]/index/index.vue new file mode 100644 index 000000000..543699eb2 --- /dev/null +++ b/pages/@[account]/index/index.vue @@ -0,0 +1,26 @@ + + + diff --git a/pages/status/[status].vue b/pages/status/[status].vue index 5b8c1deef..bcef771db 100644 --- a/pages/status/[status].vue +++ b/pages/status/[status].vue @@ -1,41 +1,19 @@