grain.social is a photo sharing platform built on atproto. grain.social
atproto photography appview
57
fork

Configure Feed

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

fix: resolve handles in profile OG endpoint

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+2 -1
+2 -1
server/og/profile.ts
··· 2 2 import type { GrainActorProfile, Photo } from "$hatk"; 3 3 import { allFonts } from "./fonts.ts"; 4 4 import { calculateCollageLayout } from "./collage.ts"; 5 + import { resolveHandle } from "../helpers/resolveHandle.ts"; 5 6 6 7 export default defineOG("/og/profile/:did", async (ctx) => { 7 8 const { db, params, fetchImage, lookup, blobUrl } = ctx; 8 - const { did } = params; 9 + const did = await resolveHandle(db, params.did) ?? params.did; 9 10 10 11 const profiles = await lookup<GrainActorProfile>("social.grain.actor.profile", "did", [did]); 11 12 const author = profiles.get(did);