From 94880d64f4d10db439abad6b79501f6481cc72cf Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Tue, 5 Dec 2023 09:26:03 +0100 Subject: [PATCH] higlight the need for id normalization --- routers/api/v1/activitypub/repository.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go index cac3659077..e17a30c7e6 100644 --- a/routers/api/v1/activitypub/repository.go +++ b/routers/api/v1/activitypub/repository.go @@ -81,6 +81,9 @@ func RepositoryInbox(ctx *context.APIContext) { log.Info("RepositoryInbox: Activity.Actor %v", activity.Actor) // assume actor is: "actor": "https://codeberg.org/api/v1/activitypub/user-id/12345" - NB: This might be actually the ID? Maybe check vocabulary. + // "https://Codeberg.org/api/v1/activitypub/user-id/12345" + // "https:443//codeberg.org/api/v1/activitypub/user-id/12345" + // "https://codeberg.org/api/v1/activitypub/../activitypub/user-id/12345" // parse actor actor, err := activitypub.ParseActorIDFromStarActivity(activity)