WIP: fit generateUUIDMail for testing purposes

This commit is contained in:
Mirco 2023-12-05 12:19:22 +01:00 committed by Michael Jerger
parent 11e93784fe
commit 1c145d9d68

View file

@ -7,7 +7,6 @@ import (
"fmt" "fmt"
"io" "io"
"net/http" "net/http"
"net/url"
"strings" "strings"
"code.gitea.io/gitea/models/activitypub" "code.gitea.io/gitea/models/activitypub"
@ -244,11 +243,11 @@ func generateUUIDMail(person ap.Actor) (string, error) {
// UUID@remote.host // UUID@remote.host
id := uuid.New().String() 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) { func getUserName(person ap.Actor) (string, error) {