atmosphere explorer pds.ls
tool typescript atproto
434
fork

Configure Feed

Select the types of activity you want to include in your feed.

add sonasky ref to app-urls and templates

authored by

Jack W. and committed by
Tangled
f4f0b19f 12f78e7f

+13
+9
src/lib/app-urls.ts
··· 7 7 Blento, 8 8 Popfeed, 9 9 GreenGale, 10 + SonaskyREF, 10 11 } 11 12 12 13 export const appName = { ··· 16 17 [App.Blento]: "Blento", 17 18 [App.Popfeed]: "Popfeed", 18 19 [App.GreenGale]: "GreenGale", 20 + [App.SonaskyREF]: "SonaSky REF", 19 21 }; 20 22 21 23 export const appList: Record<AppUrl, App> = { ··· 33 35 "blento.app": App.Blento, 34 36 "popfeed.social": App.Popfeed, 35 37 "greengale.app": App.GreenGale, 38 + "ref.sonasky.app": App.SonaskyREF, 36 39 }; 37 40 38 41 export const appHandleLink: Record<App, (url: string[]) => string> = { ··· 119 122 }, 120 123 [App.GreenGale]: (path) => { 121 124 return `at://${path[0]}/site.standard.document/${path[1]}`; 125 + }, 126 + [App.SonaskyREF]: (path) => { 127 + if (path.length === 3 && path[0] === "profile") { 128 + return `at://${path[1]}/app.sonasky.ref/${path[2]}`; 129 + } 130 + return `at://${path[1]}`; 122 131 }, 123 132 };
+4
src/lib/templates.ts
··· 51 51 label: "Popfeed", 52 52 link: `https://popfeed.social/list/at:/${uri.repo}/${uri.collection}/${uri.rkey}`, 53 53 }), 54 + "app.sonasky.ref": (uri) => ({ 55 + label: "SonaSky REF", 56 + link: `https://ref.sonasky.app/profile/${uri.repo}/${uri.rkey}`, 57 + }), 54 58 };