1
0

add ai.syui.rse

This commit is contained in:
2026-01-21 12:56:43 +09:00
parent 06ccae58a2
commit 48e5d3bc82
10 changed files with 201 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
export interface Route {
type: 'home' | 'user' | 'post' | 'postpage' | 'atbrowser' | 'service' | 'collection' | 'record' | 'chat' | 'chat-thread' | 'card' | 'card-old'
type: 'home' | 'user' | 'post' | 'postpage' | 'atbrowser' | 'service' | 'collection' | 'record' | 'chat' | 'chat-thread' | 'card' | 'card-old' | 'rse'
handle?: string
rkey?: string
service?: string
@@ -63,6 +63,12 @@ export function parseRoute(): Route {
return { type: 'card-old', handle: cardOldMatch[1] }
}
// RSE page: /@handle/at/rse
const rseMatch = path.match(/^\/@([^/]+)\/at\/rse\/?$/)
if (rseMatch) {
return { type: 'rse', handle: rseMatch[1] }
}
// Chat thread: /@handle/at/chat/{rkey}
const chatThreadMatch = path.match(/^\/@([^/]+)\/at\/chat\/([^/]+)$/)
if (chatThreadMatch) {