diff --git a/apps/web/src/pages/admin/index.astro b/apps/web/src/pages/admin/index.astro index 6dd1e52..af0d6cb 100644 --- a/apps/web/src/pages/admin/index.astro +++ b/apps/web/src/pages/admin/index.astro @@ -1,5 +1,6 @@ --- import { DEFAULT_FEED_ACTOR, feeds, getAdminStats } from "@andrioid/atproto"; +import AtpAgent from "@atproto/api"; import Layout from "~astro/layout.astro"; import PageLayout from "~astro/page-layout.astro"; import { BskyFeedPostList } from "~react/bluesky/feed-post-list"; @@ -45,6 +46,15 @@ const feedRes = await feed.handler({ // 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 ta = new AtpAgent({ + service: "http://localhost:4321", +}); +/* +const blah = await ta.app.bsky.feed.getFeedSkeleton({ + feed: "at://did:plc:2uszitvsky5qnygpolsfr5ey/app.bsky.feed.generator/tech-following", +}); +console.log("blah", blah); +*/ const posts = feedRes.feed; diff --git a/packages/atproto/config.ts b/packages/atproto/config.ts index 2cd92db..cdc81a6 100644 --- a/packages/atproto/config.ts +++ b/packages/atproto/config.ts @@ -2,7 +2,7 @@ export const config = (() => { const identifier = process.env["DID_HANDLE"]; const password = process.env["DID_PASSWORD"]; const port = process.env["PORT"] ?? 3000; - const fgHostname = process.env["FEEDGEN_HOSTNAME"] ?? "techscrolls.fly.dev"; + const fgHostname = process.env["FEEDGEN_HOSTNAME"] ?? "technical.scrolls.org"; const recordName = "testfeed"; const pgURL = process.env["PG_URL"] ?? diff --git a/packages/atproto/feeds/queries/following.ts b/packages/atproto/feeds/queries/following.ts index e813a5a..7c55382 100644 --- a/packages/atproto/feeds/queries/following.ts +++ b/packages/atproto/feeds/queries/following.ts @@ -62,6 +62,7 @@ export async function followingFeedHandler( if (p.repost) { // TODO: Why doesn't this work?! reason = { + $type: "app.bsky.feed.skeletonReasonRepost", repost: p.repost, }; }