An ATproto social media client -- with an independent Appview.
6
fork

Configure Feed

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

refactor: change base share url to catsky (#25)

* refactor: change base share url to catsky

* refactor(tests): change expected value

authored by

serenity and committed by
GitHub
ec21a578 24d6f5f2

+5 -5
+4 -4
__tests__/lib/string.test.ts
··· 267 267 }) 268 268 269 269 describe('toShareUrl', () => { 270 - const inputs = ['https://bsky.app', '/3jk7x4irgv52r', 'item/test/123'] 270 + const inputs = ['https://catsky.social', '/3jk7x4irgv52r', 'item/test/123'] 271 271 const outputs = [ 272 - 'https://bsky.app', 273 - 'https://bsky.app/3jk7x4irgv52r', 274 - 'https://bsky.app/item/test/123', 272 + 'https://catsky.social', 273 + 'https://catsky.social/3jk7x4irgv52r', 274 + 'https://catsky.social/item/test/123', 275 275 ] 276 276 277 277 it('appends https, when not present', () => {
+1 -1
src/lib/strings/url-helpers.ts
··· 79 79 80 80 export function toShareUrl(url: string): string { 81 81 if (!url.startsWith('https')) { 82 - const urlp = new URL('https://bsky.app') 82 + const urlp = new URL('https://catsky.social') 83 83 urlp.pathname = url 84 84 url = urlp.toString() 85 85 }