feat(frontend): show external parent link on remote reply posts

This commit is contained in:
2026-05-15 05:51:03 +02:00
parent f946239757
commit 009b2d43c9
2 changed files with 17 additions and 0 deletions

View File

@@ -106,6 +106,22 @@ export function ThoughtCard({
</span>
</div>
)}
{!thought.replyToId && thought.replyToUrl && (
<div className="text-sm text-muted-foreground flex items-center gap-2">
<CornerUpLeft className="h-4 w-4 text-primary/70" />
<span>
Replying to{" "}
<a
href={thought.replyToUrl}
target="_blank"
rel="noopener noreferrer"
className="hover:underline text-primary text-shadow-sm"
>
original post
</a>
</span>
</div>
)}
</div>
<Card className="mt-2">
<CardHeader className="flex flex-row items-center justify-between space-y-0">

View File

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