소스 검색

format shared blocks

Yuki Takei 4 년 전
부모
커밋
88c29367ae
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/server/service/slackbot.js

+ 2 - 1
src/server/service/slackbot.js

@@ -196,13 +196,14 @@ class SlackBotService extends S2sMessageHandlable {
     return client.chat.postMessage({
       channel: channelId,
       blocks: [
+        { type: 'divider' },
         this.generateMarkdownSectionBlock(`${this.appendSpeechBaloon(`*${this.generatePageLinkMrkdwn(pathname, href)}*`, commentCount)}`),
         {
           type: 'context',
           elements: [
             {
               type: 'mrkdwn',
-              text: `<${decodeURI(appUrl)}|*${appTitle}*>  |  ${this.generateLastUpdateMrkdwn(updatedAt, now)}  |  Shared by *${user.username}*`,
+              text: `<${decodeURI(appUrl)}|*${appTitle}*>  |  Last updated: ${this.generateLastUpdateMrkdwn(updatedAt, now)}  |  Shared by *${user.username}*`,
             },
           ],
         },