From 009b2d43c931385074595e3259ac3a7daec467cc Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Fri, 15 May 2026 05:51:03 +0200 Subject: [PATCH] feat(frontend): show external parent link on remote reply posts --- thoughts-frontend/components/thought-card.tsx | 16 ++++++++++++++++ thoughts-frontend/lib/api.ts | 1 + 2 files changed, 17 insertions(+) diff --git a/thoughts-frontend/components/thought-card.tsx b/thoughts-frontend/components/thought-card.tsx index 64e2152..554cb69 100644 --- a/thoughts-frontend/components/thought-card.tsx +++ b/thoughts-frontend/components/thought-card.tsx @@ -106,6 +106,22 @@ export function ThoughtCard({ )} + {!thought.replyToId && thought.replyToUrl && ( +
+ + + Replying to{" "} + + original post ↗ + + +
+ )} diff --git a/thoughts-frontend/lib/api.ts b/thoughts-frontend/lib/api.ts index d9cfece..e3567f6 100644 --- a/thoughts-frontend/lib/api.ts +++ b/thoughts-frontend/lib/api.ts @@ -41,6 +41,7 @@ export const ThoughtSchema = z.object({ content: z.string(), author: UserSchema, replyToId: z.string().uuid().nullable(), + replyToUrl: z.string().url().nullable().optional(), visibility: z.string(), contentWarning: z.string().nullable(), sensitive: z.boolean(),