diff --git a/models/activitypub/actor.go b/models/activitypub/actor.go index abc0d3e99d..938376f47c 100644 --- a/models/activitypub/actor.go +++ b/models/activitypub/actor.go @@ -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