add ai.syui.rse
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user