diff --git a/web/public/api/activitypub/user.go b/web/public/api/activitypub/user.go index 5413233..f663919 100644 --- a/web/public/api/activitypub/user.go +++ b/web/public/api/activitypub/user.go @@ -142,16 +142,20 @@ func users(w http.ResponseWriter, r *http.Request) { if user.Icon != nil { log.Debug().Msg("icon found") data.Icon = &OutboundMedia{ - Type: "Image", - Url: webshared.EnsurePublicUrl(user.Icon.Location), + Type: "Image", + Url: config.GlobalConfig.General.GetFullPublicUrl() + webshared.EnsurePublicUrl( + user.Icon.Location, + ), MediaType: user.Icon.Type, } } if user.Banner != nil { log.Debug().Msg("icon banner") data.Banner = &OutboundMedia{ - Type: "Image", - Url: webshared.EnsurePublicUrl(user.Banner.Location), + Type: "Image", + Url: config.GlobalConfig.General.GetFullPublicUrl() + webshared.EnsurePublicUrl( + user.Banner.Location, + ), MediaType: user.Banner.Type, } }