update at 2025-10-10 21:54:05
This commit is contained in:
@@ -381,7 +381,9 @@ export class ArticleRender implements MDRendererCallback {
|
||||
res.cover = undefined; // 忽略 frontmatter
|
||||
}
|
||||
res.thumb_media_id = this.getFrontmatterValue(frontmatter, keys.thumb_media_id);
|
||||
res.need_open_comment = frontmatter[keys.need_open_comment] ? 1 : undefined;
|
||||
if (frontmatter[keys.need_open_comment] !== undefined) {
|
||||
res.need_open_comment = frontmatter[keys.need_open_comment] ? 1 : 0;
|
||||
}
|
||||
res.only_fans_can_comment = frontmatter[keys.only_fans_can_comment] ? 1 : undefined;
|
||||
res.appid = this.getFrontmatterValue(frontmatter, keys.appid);
|
||||
if (res.appid && !res.appid.startsWith('wx')) {
|
||||
@@ -478,6 +480,9 @@ export class ArticleRender implements MDRendererCallback {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (res.need_open_comment === undefined) {
|
||||
res.need_open_comment = this.settings.needOpenComment ? 1 : 0;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -717,7 +722,7 @@ export class ArticleRender implements MDRendererCallback {
|
||||
article_type: 'newspic',
|
||||
title: metadata.title || this.title,
|
||||
content: content,
|
||||
need_open_commnet: metadata.need_open_comment || 0,
|
||||
need_open_commnet: metadata.need_open_comment ?? 0,
|
||||
only_fans_can_comment: metadata.only_fans_can_comment || 0,
|
||||
image_info: {
|
||||
image_list: imageList,
|
||||
|
||||
Reference in New Issue
Block a user