fixes iri in user create

This commit is contained in:
Christian Beutel
2025-06-28 12:33:45 +02:00
parent efebcc176b
commit 7f1b34e66c

View File

@@ -64,7 +64,7 @@ func ActorFromUser(app core.App, u *core.Record) (*core.Record, error) {
if origin == "" { if origin == "" {
return nil, fmt.Errorf("ORIGIN environment variable not set") return nil, fmt.Errorf("ORIGIN environment variable not set")
} }
id := fmt.Sprintf("%s/api/v1/activitypub/user/%s", origin, strings.ToLower(u.GetString("preferred_username"))) id := fmt.Sprintf("%s/api/v1/activitypub/user/%s", origin, strings.ToLower(u.GetString("username")))
url, err := url.Parse(origin) url, err := url.Parse(origin)
if err != nil { if err != nil {