소스 검색

notification text for comment

sou 8 년 전
부모
커밋
363bf09a6e
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      lib/util/slack.js

+ 3 - 0
lib/util/slack.js

@@ -134,6 +134,9 @@ module.exports = function(crowi) {
     if (updateType == 'create') {
       text = `:white_check_mark: ${user.username} created a new page! ${pageUrl}`;
     }
+    else if (updateType == 'comment') {
+      text = `:speech_balloon: ${user.username} commented on ${pageUrl}`;
+    }
     else {
       text = `:up: ${user.username} updated ${pageUrl}`;
     }