allows public acces to public profiles

This commit is contained in:
Christian Beutel
2025-07-04 11:11:56 +02:00
parent 7c478f6f3f
commit a7194027d8
6 changed files with 31 additions and 30 deletions

View File

@@ -26,7 +26,7 @@ export async function GET(event: RequestEvent) {
let followers: APOrderedCollectionPage;
// fetch followers locally to not run into auth issues with private profiles
if (actor.id === event.locals.user.actor) {
if (actor.id === event.locals.user?.actor) {
const r = await event.fetch(actor[type as "followers" | "following"]! + '?' + new URLSearchParams({ page }))
if (!r.ok) {