[READ ONLY MIRROR] Spark Social AppView Server github.com/sprksocial/server
atproto deno hono lexicon
5
fork

Configure Feed

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

fix cdn url on actor posts

+3 -1
+3 -1
services/appview/src/feed/feed.ts
··· 83 83 const likeCount = likeCounts.get(record.uri) || 0 84 84 const blobCid: CID = (record.value as any).embed?.video?.ref 85 85 86 + const pdsDomain = new URL(pdsUrl).hostname 87 + 86 88 return { 87 89 post: { 88 90 uri: record.uri, ··· 103 105 embed: { 104 106 $type: 'so.sprk.embed.video#view', 105 107 cid: record.cid, 106 - playlist: `https://videocdn.sprk.so/${pdsUrl}/${actorDid}/${blobCid.toString()}`, 108 + playlist: `https://videocdn.sprk.so/${pdsDomain}/${actorDid}/${blobCid.toString()}`, 107 109 thumbnail: `https://cdn.sprk.so/${actorDid}/${blobCid.toString()}/thumbnail`, 108 110 }, 109 111 replyCount: 0,