浏览代码

File are now managed by slack by an array

isundil 6 年之前
父节点
当前提交
a5cf6f6d94
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      srv/src/slackHistory.js

+ 2 - 0
srv/src/slackHistory.js

@@ -56,8 +56,10 @@ SlackHistory.prototype.messageFactory = function(ev, ts) {
                 ev["attachments"].push({
                     "image_url": imgUrl
                 });
+                return;
             }
         }
+        // FIXME manage uploads that are not images
     });
     if (!ev["user"]) {
         if (ev["bot_id"])