Explorar o código

format shared blocks

Yuki Takei %!s(int64=4) %!d(string=hai) anos
pai
achega
88c29367ae
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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}*`,
             },
           ],
         },