mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 06:25:31 +00:00
WIP: fit generateUUIDMail for testing purposes
This commit is contained in:
parent
11e93784fe
commit
1c145d9d68
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue