评论/回复只显示审核通过的(星空留言、广场、专题页,自己也不显示审核中);星空亮星均匀铺满整片夜空
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1079,9 +1079,10 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff}
|
||||
/* 11-03 用户:评论要后台审核通过才对外公开。服务器 /plaza/comments:list = 别人已通过的;mine = 我在这篇下发的(含审核中 / 未通过)。
|
||||
ME.cm 里没有 id 的是 11-03 以前只存本机的旧评论,从没公开过,照旧只给自己看(标「仅自己可见」)。 */
|
||||
var RC = {};
|
||||
/* 11-07 用户:评论、回复一定要审核通过才显示,自己也不显示「审核中」—— 只留已通过的;本机旧评论(从没审过)也不再显示 */
|
||||
var myCm = function (id) {
|
||||
var old = (ME.cm[id] || []).filter(function (c) { return !c.id; }).map(function (c) { return { t: c.t, ts: c.ts, s: c.s, st: 'local' }; });
|
||||
var srv = RC[id] ? RC[id].mine.map(function (c) { return { id: c.id, t: c.text, ts: c.at, s: c.stage, st: c.status, why: c.reason, parent: c.parent, to: c.parentName, img: c.images }; }) : [];
|
||||
var old = [];
|
||||
var srv = RC[id] ? RC[id].mine.filter(function (c) { return c.status === 'approved'; }).map(function (c) { return { id: c.id, t: c.text, ts: c.at, s: c.stage, st: c.status, why: c.reason, parent: c.parent, to: c.parentName, img: c.images }; }) : [];
|
||||
return old.concat(srv.reverse());
|
||||
};
|
||||
var realCm = function (id) { return RC[id] ? RC[id].list : []; };
|
||||
@@ -2216,7 +2217,7 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff}
|
||||
cin.value = ''; if (CP) CP.clear(); $('#csend').disabled = true; cin.blur(); $('#bar').classList.remove('typing');
|
||||
if (openId === n.id) { renderComments(n); syncBar(n); }
|
||||
if (!wasReply) { var w = $('#cmw'); if (w) $('#dsc').scrollTo({ top: w.offsetTop - 50, behavior: 'smooth' }); }
|
||||
toast(wasReply ? '回复已提交,审核通过后大家就能看到' : '已提交,审核通过后大家就能看到');
|
||||
toast(wasReply ? '回复已提交,审核通过后才会显示' : '已提交,审核通过后才会显示');
|
||||
}).catch(function () { send.busy = false; $('#csend').disabled = !canSend(); toast('网络不太好,稍后再试'); });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user