Explorar o código

File are now managed by slack by an array

isundil %!s(int64=6) %!d(string=hai) anos
pai
achega
a5cf6f6d94
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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"])