mirror of
1
Fork 0

higlight the need for id normalization

This commit is contained in:
Michael Jerger 2023-12-05 09:26:03 +01:00
parent 231bdb65b8
commit 94880d64f4
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,9 @@ func RepositoryInbox(ctx *context.APIContext) {
log.Info("RepositoryInbox: Activity.Actor %v", activity.Actor) 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. // 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 // parse actor
actor, err := activitypub.ParseActorIDFromStarActivity(activity) actor, err := activitypub.ParseActorIDFromStarActivity(activity)