Add ToDos from code review

This commit is contained in:
erik 2023-11-24 09:55:47 +01:00 committed by Michael Jerger
parent 34c511ae98
commit 8300d3fbde
2 changed files with 6 additions and 6 deletions

View file

@ -86,9 +86,8 @@ func RepositoryInbox(ctx *context.APIContext) {
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.
// TODO: validate input in front of parsing.
// parse actor
actor, err := activitypub.ParseActorID(opt.Actor.GetID().String())
actor, err := activitypub.ParseActorID(opt.Actor.GetID().String()) // ToDo: somehow extract source from star activity
// Is the actor IRI well formed?
if err != nil {