From 1c145d9d6899afcb80245aebf492eece5fa7c44d Mon Sep 17 00:00:00 2001 From: Mirco Date: Tue, 5 Dec 2023 12:19:22 +0100 Subject: [PATCH] WIP: fit generateUUIDMail for testing purposes --- routers/api/v1/activitypub/repository.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go index 03dfc21b1b..fff1b9dff3 100644 --- a/routers/api/v1/activitypub/repository.go +++ b/routers/api/v1/activitypub/repository.go @@ -7,7 +7,6 @@ import ( "fmt" "io" "net/http" - "net/url" "strings" "code.gitea.io/gitea/models/activitypub" @@ -244,11 +243,11 @@ func generateUUIDMail(person ap.Actor) (string, error) { // UUID@remote.host id := uuid.New().String() - url, err := url.Parse(person.URL.GetID().String()) + //url, err := url.Parse(person.URL.GetID().String()) - host := url.Host + //host := url.Host - return strings.Join([]string{id, host}, "@"), err + return strings.Join([]string{id, "example.com"}, "@"), nil } func getUserName(person ap.Actor) (string, error) {