mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-15 08:29:25 +01:00
Use MediaServerDownload instead of MediaServerUpload for avatars
This commit is contained in:
parent
7886f05e88
commit
4c506f7cc3
@ -57,7 +57,7 @@ func HandleExtra(msg *config.Message, general *config.Protocol) []config.Message
|
||||
|
||||
func GetAvatar(av map[string]string, userid string, general *config.Protocol) string {
|
||||
if sha, ok := av[userid]; ok {
|
||||
return general.MediaServerUpload + "/" + sha + "/" + userid + ".png"
|
||||
return general.MediaServerDownload + "/" + sha + "/" + userid + ".png"
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user