koishi-plugin-share-links-analysis 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/utils.js +1 -2
  2. package/package.json +1 -1
package/lib/utils.js CHANGED
@@ -435,9 +435,7 @@ async function sendResult_forward(session, config, result, logger, mixed_sending
435
435
  let message = config.format;
436
436
  message = message.replace(/{title}/g, escapeHtml(result.title || ''));
437
437
  message = message.replace(/{authorName}/g, escapeHtml(result.authorName || ''));
438
- message = message.replace(/{mainbody}/g, mediaMainbody ?? '');
439
438
  message = message.replace(/{sourceUrl}/g, escapeHtml(result.sourceUrl || ''));
440
- message = message.replace(/{cover}/g, mediaCoverUrl ? koishi_1.h.image(mediaCoverUrl).toString() : '');
441
439
  message = message.replace(/{stats}/g, escapeHtml(result.stats || ''));
442
440
  const lines = message.split('\n').filter(line => line.trim() !== '');
443
441
  const mainSegments = [];
@@ -464,6 +462,7 @@ async function sendResult_forward(session, config, result, logger, mixed_sending
464
462
  }
465
463
  }
466
464
  if (currentLineSegments.length > 0) {
465
+ logger.info(currentLineSegments);
467
466
  mainSegments.push(...currentLineSegments);
468
467
  }
469
468
  if (!isLastLine && hasTextContent) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "koishi-plugin-share-links-analysis",
3
3
  "description": "自用插件",
4
4
  "license": "MIT",
5
- "version": "0.5.2",
5
+ "version": "0.5.3",
6
6
  "main": "lib/index.js",
7
7
  "typings": "lib/index.d.ts",
8
8
  "files": [