mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-21 02:02:00 -08:00
fix a couple of comments
This commit is contained in:
parent
e96d6e346a
commit
7f209248e3
@ -591,12 +591,6 @@ func (b *Bmatrix) handleDownloadFile(rmsg *config.Message, content map[string]in
|
||||
|
||||
rmsg.Extra = make(map[string][]interface{})
|
||||
|
||||
//// moved to getMessageFileUrl
|
||||
//if url, ok = content["url"].(string); !ok {
|
||||
// return fmt.Errorf("url isn't a %T", url)
|
||||
//}
|
||||
//url = strings.Replace(url, "mxc://", b.GetString("Server")+"/_matrix/media/v1/download/", -1)
|
||||
|
||||
url, err := b.getMessageFileUrl(content)
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -1329,7 +1329,7 @@ StripNick=false
|
||||
#OPTIONAL (default false)
|
||||
ShowTopicChange=false
|
||||
|
||||
#Enable to send a URL rather than an image
|
||||
#Enable to send a URL rather than a file
|
||||
#The default behavior is to download and send/upload the file.
|
||||
#OPTIONAL (default false)
|
||||
#SendUrlNotFile=true
|
||||
|
Loading…
Reference in New Issue
Block a user