1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

Use u.Hostname() instead of u.Host

u.Host returns hostname:port.
This commit is contained in:
erik 2023-12-06 12:05:47 +01:00 committed by Michael Jerger
parent 27c9db1027
commit 65f7124c67

View file

@ -121,7 +121,7 @@ func ParseActorIDFromStarActivity(star *forgefed.Star) (ActorID, error) {
userId: userId,
source: star.Source,
schema: u.Scheme,
host: u.Host,
host: u.Hostname(), // u.Host returns hostname:port
path: u.Path,
port: u.Port(),
}, nil