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
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:
@@ -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:{" "}
|
||||
|
||||
@@ -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 && (
|
||||
|
||||
Reference in New Issue
Block a user