From 79d935faa6d37e3483d47d069fc513fa79b242c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andri=20=C3=93skarsson?= Date: Tue, 14 Jan 2025 20:01:20 +0100 Subject: [PATCH] one last time --- packages/atproto/domain/get-tech-following-feed.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/atproto/domain/get-tech-following-feed.ts b/packages/atproto/domain/get-tech-following-feed.ts index 5aa6d8d..187b8db 100644 --- a/packages/atproto/domain/get-tech-following-feed.ts +++ b/packages/atproto/domain/get-tech-following-feed.ts @@ -1,4 +1,3 @@ -import { AtUri } from "@atproto/api"; import type { SkeletonFeedPost, SkeletonReasonRepost, @@ -65,18 +64,15 @@ export async function getTechFollowingFeed( feed: posts.map((p) => { let reason: SkeletonReasonRepost | undefined = undefined; if (p.repost) { - const a = new AtUri(p.repost); - a.collection = ""; - a.rkey = ""; reason = { - repost: a.toString(), + repost: p.repost, }; } return { post: p.id, reason, - feedContext: "tech-following", + feedContext: p.repost ? p.repost : "tech-following", } satisfies SkeletonFeedPost; }), cursor: -- 2.51.2