diff --git a/models/activitypub/actor.go b/models/activitypub/actor.go index 18152dac63..db72e767f8 100644 --- a/models/activitypub/actor.go +++ b/models/activitypub/actor.go @@ -92,7 +92,7 @@ func (a ActorID) GetUserId() int { return result } -func (a ActorID) GetNormailzedUri() string { // ToDo: Port might be empty +func (a ActorID) GetNormalizedUri() string { // ToDo: Port might be empty result := fmt.Sprintf("%s://%s:%s/%s/%s", a.schema, a.host, a.port, a.path, a.userId) return result } diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go index be833e6282..c7c65350ef 100644 --- a/routers/api/v1/activitypub/repository.go +++ b/routers/api/v1/activitypub/repository.go @@ -219,8 +219,8 @@ func RepositoryInbox(ctx *context.APIContext) { log.Info("RepositoryInbox: Actor parsed. %v", senderActorId) log.Info("RepositoryInbox: Actor parsed. %v", receivedRepoId) - remoteStargazer := senderActorId.GetNormailzedUri() // used as LoginName in newly created user - starReceiver := receivedRepoId.GetNormailzedUri() + remoteStargazer := senderActorId.GetNormalizedUri() // used as LoginName in newly created user + starReceiver := receivedRepoId.GetNormalizedUri() log.Info("remotStargazer: %v", remoteStargazer) log.Info("starReceiver: %v", starReceiver)