@gengchenchina/chrome-media-publish-extension 1.0.10 → 1.0.12

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 CHANGED
@@ -1903,7 +1903,7 @@ var platform = Object.freeze({
1903
1903
  video: {
1904
1904
  isOk: true,
1905
1905
  titleMin: 0,
1906
- titleMax: 20,
1906
+ titleMax: 30,
1907
1907
  tagsMin: 0,
1908
1908
  tagsMax: 5,
1909
1909
  contentMax: 1,
@@ -4933,9 +4933,9 @@ async function findBaijiahaoArticle(ctx, articleId, input = {}) {
4933
4933
  function mapBaijiahaoArticleStatus(item, statusRef) {
4934
4934
  const checkedAt = Date.now();
4935
4935
  const status = String(item?.status || "");
4936
- const postUrl = [item?.share_url, item?.url, statusRef.url].map(toBaijiahaoPublicUrl).find(Boolean);
4937
- const reason = item?.audit_msg || item?.secure_not_pass_reason || item?.quality_not_pass_reason;
4938
- if (/reject|fail|nopass|not_pass|forbid|withdraw|delete/i.test(status) || item?.secure_status === "rejected" || reason) {
4936
+ const postUrl = [item?.url, item?.share_url, statusRef.url].map(toBaijiahaoPublicUrl).find(Boolean);
4937
+ if (/reject|fail|nopass|not_pass|forbid|withdraw|delete/i.test(status) || item?.secure_status === "rejected") {
4938
+ const reason = item?.secure_not_pass_reason || item?.audit_msg || item?.quality_not_pass_reason;
4939
4939
  return {
4940
4940
  status: "rejected",
4941
4941
  postUrl,