tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
27
pulls
pipelines
add blobRefToSrc utility function
awarm.space
9 months ago
3d5a5785
a51553af
+4
1 changed file
expand all
collapse all
unified
split
src
utils
blobRefToSrc.ts
+4
src/utils/blobRefToSrc.ts
···
1
1
+
import { BlobRef } from "@atproto/lexicon";
2
2
+
3
3
+
export const blobRefToSrc = (b: BlobRef["ref"], did: string) =>
4
4
+
`/api/atproto_images?did=${did}&cid=${(b as unknown as { $link: string })["$link"]}`;