diff --git a/src/lib/app-urls.ts b/src/lib/app-urls.ts index 4a0735f..88ad58e 100644 --- a/src/lib/app-urls.ts +++ b/src/lib/app-urls.ts @@ -7,6 +7,7 @@ export enum App { Blento, Popfeed, GreenGale, + SonaskyREF, } export const appName = { @@ -16,6 +17,7 @@ export const appName = { [App.Blento]: "Blento", [App.Popfeed]: "Popfeed", [App.GreenGale]: "GreenGale", + [App.SonaskyREF]: "SonaSky REF", }; export const appList: Record = { @@ -33,6 +35,7 @@ export const appList: Record = { "blento.app": App.Blento, "popfeed.social": App.Popfeed, "greengale.app": App.GreenGale, + "ref.sonasky.app": App.SonaskyREF, }; export const appHandleLink: Record string> = { @@ -120,4 +123,10 @@ export const appHandleLink: Record string> = { [App.GreenGale]: (path) => { return `at://${path[0]}/site.standard.document/${path[1]}`; }, + [App.SonaskyREF]: (path) => { + if (path.length === 3 && path[0] === "profile") { + return `at://${path[1]}/app.sonasky.ref/${path[2]}`; + } + return `at://${path[1]}`; + }, }; diff --git a/src/lib/templates.ts b/src/lib/templates.ts index 17fe121..657337b 100644 --- a/src/lib/templates.ts +++ b/src/lib/templates.ts @@ -51,4 +51,8 @@ export const uriTemplates: TemplateMap = { label: "Popfeed", link: `https://popfeed.social/list/at:/${uri.repo}/${uri.collection}/${uri.rkey}`, }), + "app.sonasky.ref": (uri) => ({ + label: "SonaSky REF", + link: `https://ref.sonasky.app/profile/${uri.repo}/${uri.rkey}`, + }), };