Browse Source

format shared blocks

Yuki Takei 4 years ago
parent
commit
88c29367ae
1 changed files with 2 additions and 1 deletions
  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}*`,
             },
           ],
         },