feat: update k-ap dependency to v0.1.8 and enhance middleware for ActivityPub requests
This commit is contained in:
@@ -126,11 +126,13 @@ export default async function ProfilePage({ params }: ProfilePageProps) {
|
||||
const followingCount = localFollowingCount + remoteFollowingCount;
|
||||
const isFollowing = user.isFollowedByViewer;
|
||||
|
||||
const apiDomain = process.env.NEXT_PUBLIC_API_URL
|
||||
? new URL(process.env.NEXT_PUBLIC_API_URL).hostname
|
||||
: null;
|
||||
const fediverseDomain =
|
||||
process.env.NEXT_PUBLIC_FEDIVERSE_DOMAIN ??
|
||||
(process.env.NEXT_PUBLIC_API_URL
|
||||
? new URL(process.env.NEXT_PUBLIC_API_URL).hostname
|
||||
: null);
|
||||
const fediverseHandle =
|
||||
user.local && apiDomain ? `@${user.username}@${apiDomain}` : null;
|
||||
user.local && fediverseDomain ? `@${user.username}@${fediverseDomain}` : null;
|
||||
|
||||
return (
|
||||
<div id={`profile-page-${user.username}`}>
|
||||
|
||||
Reference in New Issue
Block a user