feat: update k-ap dependency to v0.1.8 and enhance middleware for ActivityPub requests

This commit is contained in:
2026-05-28 01:08:45 +02:00
parent f6893b19dc
commit 5ca5ad9561
8 changed files with 80 additions and 18 deletions

View File

@@ -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}`}>