diff options
Diffstat (limited to 'bridge/matrix/matrix.go')
-rw-r--r-- | bridge/matrix/matrix.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bridge/matrix/matrix.go b/bridge/matrix/matrix.go index 824870cf..78779c87 100644 --- a/bridge/matrix/matrix.go +++ b/bridge/matrix/matrix.go @@ -372,6 +372,8 @@ func (b *Bmatrix) getAvatarURL(sender string) string { return "" } url := strings.ReplaceAll(mxcURL, "mxc://", b.GetString("Server")+"/_matrix/media/r0/thumbnail/") - url += "?width=37&height=37&method=crop" + if url != "" { + url += "?width=37&height=37&method=crop" + } return url } |