diff --git a/guangchang/index.html b/guangchang/index.html index 5642a64..312a838 100644 --- a/guangchang/index.html +++ b/guangchang/index.html @@ -1053,7 +1053,7 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff} var CMD = null, CMERR = false; /* 头像编码:数字 = av/NNNN.webp(旧代码头像);'av:c012' = av/c012.webp(卡通/可爱卡通);'/…' = 站内绝对路径(内置头像库 /_bridge/avatars/);其余 = assets/img/mom/xxx.jpg */ var avP = function (a) { return typeof a === 'number' ? 'av/' + ('000' + a).slice(-4) + '.webp' : a.indexOf('av:') === 0 ? 'av/' + a.slice(3) + '.webp' : a.charAt(0) === '/' ? a : '../assets/img/mom/' + a + '.jpg'; }; - fetch('cm.json?v=26110634').then(function (r) { return r.json(); }).then(function (j) { + fetch('cm.json?v=26110635').then(function (r) { return r.json(); }).then(function (j) { CMD = j; if (openId && NBY[openId]) { renderComments(NBY[openId]); syncBar(NBY[openId]); } }).catch(function () { CMERR = true; if (openId && NBY[openId]) renderComments(NBY[openId]); }); function commentsOf(n) { @@ -1079,10 +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 用户:评论、回复一定要审核通过才显示,自己也不显示「审核中」—— 只留已通过的;本机旧评论(从没审过)也不再显示 */ + /* 11-07 用户改(同星空留言区):别人只看到已通过的;自己发的审核中也显示、标「审核中 · 只有你自己看得到」;没通过的不出;本机旧评论(从没审过)不再显示 */ var myCm = function (id) { 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 }; }) : []; + var srv = RC[id] ? RC[id].mine.filter(function (c) { return c.status !== 'rejected'; }).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 : []; }; @@ -1095,7 +1095,7 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff} } var cpH = function (a) { return window.MBCmPics ? MBCmPics.html(a) : ''; }; /* 11-05 评论里的图 */ var cpT = function (t) { return window.MBCmPics ? MBCmPics.txt(t) : esc(t); }; /* 11-05 评论文字里的 [兜表情:xx] 换成表情图 */ - function stTag(c) { return c.st === 'pending' ? '审核中 · 通过后大家才能看到' : c.st === 'rejected' ? '未通过' + (c.why ? ':' + esc(c.why) : '') + '' : c.st === 'local' ? '仅自己可见' : ''; } + function stTag(c) { return c.st === 'pending' ? '审核中 · 只有你自己看得到' : c.st === 'rejected' ? '未通过' + (c.why ? ':' + esc(c.why) : '') + '' : c.st === 'local' ? '仅自己可见' : ''; } function rpHTML(list, k, owner) { return list.length ? '
' + esc(x.n) + '' + (x.au ? '作者' : '') + (x.me ? '我' : '') + @@ -2217,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('网络不太好,稍后再试'); }); } diff --git a/index.html b/index.html index 9677c1b..68f7ba2 100644 --- a/index.html +++ b/index.html @@ -9,10 +9,10 @@