mirror of
1
Fork 0

add comment

This commit is contained in:
Michael Jerger 2023-11-17 08:22:27 +01:00
parent 5729cee3e5
commit 5c998a5c46
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ func RepositoryInbox(ctx *context.APIContext) {
log.Info("RepositoryInbox: Activity.Actor %v", opt.Actor) log.Info("RepositoryInbox: Activity.Actor %v", opt.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.
// TODO: validate input in front of parsing.
// parse actor // parse actor
actor, err := activitypub.ParseActorData(opt.Actor.GetID().String()) actor, err := activitypub.ParseActorData(opt.Actor.GetID().String())