fix a couple of comments

This commit is contained in:
other8026 2024-02-14 15:36:43 +08:00
parent e96d6e346a
commit 7f209248e3
2 changed files with 1 additions and 7 deletions

View File

@ -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

View File

@ -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