Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-22 09:54:24 +01:00

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

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)