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(),