summaryrefslogtreecommitdiffstats
path: root/api4
diff options
context:
space:
mode:
authorJesús Espino <jespinog@gmail.com>2018-08-08 12:10:05 +0200
committerCarlos Tadeu Panato Junior <ctadeu@gmail.com>2018-08-08 12:10:05 +0200
commit5fbec91c35d7ea5d9b920b26a01fc21da55bb08e (patch)
tree533f7dfb17e151cd5fc76d3ed8c30d19b8475723 /api4
parent7475cd260a3aba46e0b7524656b42209c1779c22 (diff)
downloadchat-5fbec91c35d7ea5d9b920b26a01fc21da55bb08e.tar.gz
chat-5fbec91c35d7ea5d9b920b26a01fc21da55bb08e.tar.bz2
chat-5fbec91c35d7ea5d9b920b26a01fc21da55bb08e.zip
MM-9747: Small fixes for attachments import (#9225)
* MM-9747: Small fixes for attachments import * Adding unit test RootId check in replies
Diffstat (limited to 'api4')
-rw-r--r--api4/file.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api4/file.go b/api4/file.go
index f73a54fb4..cfb72cdcb 100644
--- a/api4/file.go
+++ b/api4/file.go
@@ -285,6 +285,7 @@ func getFilePreview(c *Context, w http.ResponseWriter, r *http.Request) {
if err != nil {
c.Err = err
c.Err.StatusCode = http.StatusNotFound
+ return
}
defer fileReader.Close()