This commit is contained in:
parent
7b7a91676e
commit
66297dc78a
1 changed files with 8 additions and 4 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue