From d231436e68345ed96f9a5826925454121136f7a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=AE=E7=94=9F?= Date: Sun, 17 Dec 2023 18:39:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8F=AF=E8=AF=BB=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/index.ts b/src/index.ts index c4fa4bc..eec5c08 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,7 +6,7 @@ const MAX_FEED_NUM = 100; const SUMMARY_LENGTH = 150; const DEFAULT_CRON = "1 * * * *"; -export default class OceanPress extends Plugin { +export default class FeedPlugin extends Plugin { name = "feed plugin"; /** 拉取feed链接并进行解析的函数 */ _feedFetch: (() => void)[] = []; @@ -44,16 +44,6 @@ export default class OceanPress extends Plugin { ) .forEach(async (entry) => { console.log("insertBlock ", entry); - `
  • -
    科技爱好者周刊(第 280 期):机器点餐与宅文化
    - -
    -

    这里记录每周值得分享的科技内容,周五发布。...

    -
    -
  • `; if (feedDoc.attrBlock?.id) { let data = `* [ ] ###### [${entry.title ?? entry.link}](${entry.link})\n`; if (entry.published) data += ` - published:${entry.published}\n`; @@ -269,7 +259,7 @@ function insertBlock(par: { }): Promise { return new Promise((r, _j) => { /** https://github.com/siyuan-note/siyuan/blob/master/API_zh_CN.md#%E6%8F%92%E5%85%A5%E5%9D%97 */ - fetchPost("http://127.0.0.1:6806/api/block/insertBlock", par, (res) => { + fetchPost("/api/block/insertBlock", par, (res) => { r(res); }); });