diff --git a/server/commons/Handler.coffee b/server/commons/Handler.coffee index aceff9437..a4d50b9bc 100644 --- a/server/commons/Handler.coffee +++ b/server/commons/Handler.coffee @@ -481,8 +481,7 @@ module.exports = class Handler sendChangedSlackMessage: (options) -> message = "#{options.creator.get('name')} saved a change to #{options.target.get('name')}: #{options.target.get('commitMessage') or '(no commit message)'} #{options.docLink}" - rooms = if /Diplomat submission/.test(message) then ['dev-feed'] else ['dev-feed', 'artisans'] - slack.sendSlackMessage message, rooms + slack.sendSlackMessage message, ['artisans'] makeNewInstance: (req) -> model = new @modelClass({}) diff --git a/server/handlers/patch_handler.coffee b/server/handlers/patch_handler.coffee index b88f63a86..5d0de52e8 100644 --- a/server/handlers/patch_handler.coffee +++ b/server/handlers/patch_handler.coffee @@ -113,6 +113,6 @@ PatchHandler = class PatchHandler extends Handler sendPatchCreatedSlackMessage: (options) -> message = "#{options.creator.get('name')} submitted a patch to #{options.target.get('name')}: #{options.patch.get('commitMessage')} #{options.docLink}" - slack.sendSlackMessage message, ['dev-feed'] + slack.sendSlackMessage message, ['artisans'] module.exports = new PatchHandler() diff --git a/server/middleware/versions.coffee b/server/middleware/versions.coffee index aafebcb08..9c5e367f1 100644 --- a/server/middleware/versions.coffee +++ b/server/middleware/versions.coffee @@ -96,8 +96,7 @@ module.exports = # Post a message on Slack message = "#{req.user.get('name')} saved a change to #{doc.get('name')}: #{doc.get('commitMessage') or '(no commit message)'} #{docLink}" - rooms = if /Diplomat submission/.test(message) then ['dev-feed'] else ['dev-feed'] - slack.sendSlackMessage message, rooms + slack.sendSlackMessage message, ['artisans'] # Send emails to watchers watchers = doc.get('watchers') or [] diff --git a/server/slack.coffee b/server/slack.coffee index 7d26222da..55d697efb 100644 --- a/server/slack.coffee +++ b/server/slack.coffee @@ -8,8 +8,7 @@ roomChannelMap = module.exports.sendChangedSlackMessage = (options) -> message = "#{options.creator.get('name')} saved a change to #{options.target.get('name')}: #{options.target.get('commitMessage') or '(no commit message)'} #{options.docLink}" - rooms = if /Diplomat submission/.test(message) then ['dev-feed'] else ['artisans'] - @sendSlackMessage message, rooms + @sendSlackMessage message, ['artisans'] module.exports.sendSlackMessage = (message, rooms=['tower'], options={}) -> unless config.isProduction