From 946e5cf34cc557106492b7b12c750ef57928860d Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 6 Dec 2023 15:37:14 +0100 Subject: [PATCH] Remove typo in func --- models/activitypub/actor.go | 2 +- routers/api/v1/activitypub/repository.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)