dfsfsd
This commit is contained in:
parent
23cc2e7f31
commit
a70b7c1121
2 changed files with 12 additions and 11 deletions
|
@ -319,16 +319,6 @@ ACTIONTYPES2={
|
||||||
"icon": "fa-user-slash",
|
"icon": "fa-user-slash",
|
||||||
"color": "bg-muted",
|
"color": "bg-muted",
|
||||||
},
|
},
|
||||||
"club_allow":{
|
|
||||||
"str":'allowed user {self.target_link} into the {cc}',
|
|
||||||
"icon":"fa-user-slash",
|
|
||||||
"color": "bg-danger",
|
|
||||||
},
|
|
||||||
"club_ban":{
|
|
||||||
"str":'disallowed user {self.target_link} from the {cc}',
|
|
||||||
"icon": "fa-user-slash",
|
|
||||||
"color": "bg-muted",
|
|
||||||
},
|
|
||||||
"nuke_user":{
|
"nuke_user":{
|
||||||
"str":'removed all content of {self.target_link}',
|
"str":'removed all content of {self.target_link}',
|
||||||
"icon":"fa-user-slash",
|
"icon":"fa-user-slash",
|
||||||
|
@ -399,6 +389,16 @@ ACTIONTYPES2={
|
||||||
"icon":"fa-feather-alt",
|
"icon":"fa-feather-alt",
|
||||||
"color": "bg-muted",
|
"color": "bg-muted",
|
||||||
},
|
},
|
||||||
|
"club":{
|
||||||
|
"str": 'marked post {self.target_link} as club-only',
|
||||||
|
"icon":"fa-eye-slash",
|
||||||
|
"color": "bg-danger",
|
||||||
|
},
|
||||||
|
"unclub":{
|
||||||
|
"str": 'unmarked post {self.target_link} as club-only',
|
||||||
|
"icon":"fa-eye",
|
||||||
|
"color": "bg-muted",
|
||||||
|
},
|
||||||
"ban_comment":{
|
"ban_comment":{
|
||||||
"str": 'removed {self.target_link}',
|
"str": 'removed {self.target_link}',
|
||||||
"icon":"fa-comment",
|
"icon":"fa-comment",
|
||||||
|
|
|
@ -190,9 +190,10 @@ def log(v):
|
||||||
|
|
||||||
actions = g.db.query(ModAction)
|
actions = g.db.query(ModAction)
|
||||||
if not (v and v.admin_level > 1):
|
if not (v and v.admin_level > 1):
|
||||||
actions = actions.filter(ModAction.kind!="shadowban", ModAction.kind!="unshadowban", ModAction.kind!="club", ModAction.kind!="unclub", ModAction.kind!="check")
|
actions = actions.filter(ModAction.kind!="shadowban", ModAction.kind!="unshadowban", ModAction.kind!="club_allow", ModAction.kind!="club_ban", ModAction.kind!="check")
|
||||||
|
|
||||||
if admin_id: actions = actions.filter_by(user_id=admin_id)
|
if admin_id: actions = actions.filter_by(user_id=admin_id)
|
||||||
|
if kind: actions = actions.filter_by(kind=kind)
|
||||||
|
|
||||||
actions = actions.order_by(ModAction.id.desc()).offset(25*(page-1)).limit(26).all()
|
actions = actions.order_by(ModAction.id.desc()).offset(25*(page-1)).limit(26).all()
|
||||||
next_exists=len(actions)>25
|
next_exists=len(actions)>25
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue