mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 22:23:50 +03:00
WIP: fit generateUUIDMail for testing purposes
This commit is contained in:
parent
11e93784fe
commit
1c145d9d68
1 changed files with 3 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue