summaryrefslogtreecommitdiffstats
path: root/bridge/helper
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/helper')
-rw-r--r--bridge/helper/helper.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/bridge/helper/helper.go b/bridge/helper/helper.go
index 10c3647a..44052e11 100644
--- a/bridge/helper/helper.go
+++ b/bridge/helper/helper.go
@@ -54,3 +54,10 @@ func HandleExtra(msg *config.Message, general *config.Protocol) []config.Message
}
return rmsg
}
+
+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 ""
+}