kaori 5 лет назад
Родитель
Сommit
92d42a00bf
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      src/server/service/bolt.js

+ 4 - 2
src/server/service/bolt.js

@@ -189,13 +189,15 @@ class BoltService {
       const url = new URL(path, base);
       return `<${decodeURI(url.href)} | ${decodeURI(url.pathname)}>`;
     });
+    // TODO: This search results numbers will be improved by GW-5258
+    const keyword = `keyword: "${args}" \n 10 results.`;
 
     try {
       await this.client.chat.postEphemeral({
         channel: command.channel_id,
         user: command.user_id,
         blocks: [
-          this.generateMarkdownSectionBlock(`keyword: "${args}" 10 results.`),
+          this.generateMarkdownSectionBlock(keyword),
           this.generateMarkdownSectionBlock(`${urls.join('\n')}`),
           {
             type: 'actions',
@@ -208,7 +210,7 @@ class BoltService {
                 },
                 style: 'primary',
                 action_id: 'shareSearchResults',
-                value: `${urls.join('\n')}`,
+                value: `${keyword} \n\n ${urls.join('\n')}`,
               },
             ],
           },