Rename to ActorData

This commit is contained in:
erik 2023-11-16 15:02:20 +01:00 committed by Michael Jerger
parent 09058c13c5
commit 78fc75135f
2 changed files with 4 additions and 4 deletions

View file

@ -78,7 +78,7 @@ func RepositoryInbox(ctx *context.APIContext) {
// assume actor is: "actor": "https://codeberg.org/api/v1/activitypub/user-id/12345" - NB: This might be actually the ID? Maybe check vocabulary.
// parse actor
actor, err := activitypub.ParseActor(opt.Actor.GetID().String())
actor, err := activitypub.ParseActorData(opt.Actor.GetID().String())
// Is the actor IRI well formed?
if err != nil {
@ -86,7 +86,7 @@ func RepositoryInbox(ctx *context.APIContext) {
}
// Is the ActorData Struct valid?
err = actor.ValidateActor()
err = actor.ValidateActorData()
if err != nil {
panic(err)