feat(frontend): show external parent link on remote reply posts
This commit is contained in:
@@ -106,6 +106,22 @@ export function ThoughtCard({
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
<Card className="mt-2">
|
<Card className="mt-2">
|
||||||
<CardHeader className="flex flex-row items-center justify-between space-y-0">
|
<CardHeader className="flex flex-row items-center justify-between space-y-0">
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ export const ThoughtSchema = z.object({
|
|||||||
content: z.string(),
|
content: z.string(),
|
||||||
author: UserSchema,
|
author: UserSchema,
|
||||||
replyToId: z.string().uuid().nullable(),
|
replyToId: z.string().uuid().nullable(),
|
||||||
|
replyToUrl: z.string().url().nullable().optional(),
|
||||||
visibility: z.string(),
|
visibility: z.string(),
|
||||||
contentWarning: z.string().nullable(),
|
contentWarning: z.string().nullable(),
|
||||||
sensitive: z.boolean(),
|
sensitive: z.boolean(),
|
||||||
|
|||||||
Reference in New Issue
Block a user