show admin list & you are admin

This commit is contained in:
2022-09-26 01:48:33 +08:00
parent 30006ca528
commit 22304cb03d
5 changed files with 62 additions and 10 deletions

View File

@@ -1473,15 +1473,21 @@ class SubFlow extends PureComponent {
});
localStorage['_LATEST_POST_ID'] = '' + max_id;
}
window.TITLE = json.custom_title;
window.AUTO_BLCOK = json.auto_block_rank;
if (
json.custom_title &&
window.TITLE_SECRET !== json.title_secret
) {
window.TITLE_SECRET = json.title_secret;
localStorage['TITLE_SECRET'] = json.title_secret;
if (page === 1) {
window.IS_ADMIN = json.is_admin;
window.IS_CANDIDATE = json.is_candidate;
window.TITLE = json.custom_title;
window.AUTO_BLCOK = json.auto_block_rank;
if (
json.custom_title &&
window.TITLE_SECRET !== json.title_secret
) {
window.TITLE_SECRET = json.title_secret;
localStorage['TITLE_SECRET'] = json.title_secret;
}
}
json.data.forEach((x) => {
if (x.comments) {
let comment_json = {