diff --git a/apps/web/src/pages/admin/index.astro b/apps/web/src/pages/admin/index.astro index 65b021a..607a682 100644 --- a/apps/web/src/pages/admin/index.astro +++ b/apps/web/src/pages/admin/index.astro @@ -37,6 +37,12 @@ const feedRes = await feed.handler({ search: query, }); +// const val = lexicons.validate("app.bsky.feed.getFeedSkeleton#main", feedRes); +// if (!val.success) { +// throw new Error("Feed output is invalid", { cause: val.error }); +// } +// TODO: We can try to fetch our own feed with app.bsky.feed.getFeedSkeleton() + const posts = feedRes.feed; const nurl = new URL(url); diff --git a/packages/atproto/feeds/queries/following.ts b/packages/atproto/feeds/queries/following.ts index ae15a99..f1386e5 100644 --- a/packages/atproto/feeds/queries/following.ts +++ b/packages/atproto/feeds/queries/following.ts @@ -63,9 +63,9 @@ export async function followingFeedHandler( let reason: SkeletonReasonRepost | undefined = undefined; if (p.repost) { // TODO: Why doesn't this work?! - // reason = { - // repost: p.repost, - // }; + reason = { + repost: p.repost, + }; } return { post: p.id,