koztv-blog-tools 1.2.7 → 1.2.8
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.
- package/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -822,12 +822,14 @@ async function processPost(post, options, exportDir) {
|
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
824
|
}
|
|
825
|
+
const replyLine = post.replyToMsgId ? `reply_to_msg_id: ${post.replyToMsgId}
|
|
826
|
+
` : "";
|
|
825
827
|
const markdown = `---
|
|
826
828
|
title: "${title.replace(/"/g, '\\"')}"
|
|
827
829
|
date: ${date}
|
|
828
830
|
lang: ${lang}
|
|
829
831
|
original_link: "${post.link || ""}"
|
|
830
|
-
${isOriginal ? "" : `translated_from: "${translate?.sourceLang || "ru"}"
|
|
832
|
+
${replyLine}${isOriginal ? "" : `translated_from: "${translate?.sourceLang || "ru"}"
|
|
831
833
|
`}---
|
|
832
834
|
|
|
833
835
|
${finalBody}
|
package/dist/index.mjs
CHANGED
|
@@ -765,12 +765,14 @@ async function processPost(post, options, exportDir) {
|
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
|
+
const replyLine = post.replyToMsgId ? `reply_to_msg_id: ${post.replyToMsgId}
|
|
769
|
+
` : "";
|
|
768
770
|
const markdown = `---
|
|
769
771
|
title: "${title.replace(/"/g, '\\"')}"
|
|
770
772
|
date: ${date}
|
|
771
773
|
lang: ${lang}
|
|
772
774
|
original_link: "${post.link || ""}"
|
|
773
|
-
${isOriginal ? "" : `translated_from: "${translate?.sourceLang || "ru"}"
|
|
775
|
+
${replyLine}${isOriginal ? "" : `translated_from: "${translate?.sourceLang || "ru"}"
|
|
774
776
|
`}---
|
|
775
777
|
|
|
776
778
|
${finalBody}
|