feat: followers/following links on remote profile; render remote post content as HTML
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m39s
test / unit (pull_request) Failing after 10m48s
test / integration (pull_request) Failing after 16m54s

This commit is contained in:
2026-05-15 00:04:54 +02:00
parent 0b4c8c6c40
commit 8b3dfffd3b
8 changed files with 46 additions and 4 deletions

View File

@@ -133,6 +133,31 @@ export function RemoteUserProfile({
</Link>
</Button>
{(actor.followersUrl || actor.followingUrl) && (
<div className="mt-3 flex gap-3 text-sm">
{actor.followersUrl && (
<Link
href={actor.followersUrl}
target="_blank"
rel="noopener noreferrer"
className="text-muted-foreground hover:text-foreground hover:underline"
>
Followers
</Link>
)}
{actor.followingUrl && (
<Link
href={actor.followingUrl}
target="_blank"
rel="noopener noreferrer"
className="text-muted-foreground hover:text-foreground hover:underline"
>
Following
</Link>
)}
</div>
)}
{actor.alsoKnownAs && (
<p className="mt-2 text-xs text-muted-foreground">
Also known as:{" "}

View File

@@ -152,9 +152,16 @@ export function ThoughtCard({
</DropdownMenu>
</CardHeader>
<CardContent>
<p className="whitespace-pre-wrap break-words text-shadow-sm">
{thought.content}
</p>
{thought.author.local ? (
<p className="whitespace-pre-wrap break-words text-shadow-sm">
{thought.content}
</p>
) : (
<div
className="text-sm break-words [&_a]:underline [&_a]:text-primary [&_p]:mb-2"
dangerouslySetInnerHTML={{ __html: thought.content }}
/>
)}
</CardContent>
{token && (