mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-25 12:12:05 -08: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 {
|
func GetAvatar(av map[string]string, userid string, general *config.Protocol) string {
|
||||||
if sha, ok := av[userid]; ok {
|
if sha, ok := av[userid]; ok {
|
||||||
return general.MediaServerUpload + "/" + sha + "/" + userid + ".png"
|
return general.MediaServerDownload + "/" + sha + "/" + userid + ".png"
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user