rename 2 modlog actions
parent
b526f6cc21
commit
a664d19c37
|
@ -76,7 +76,7 @@ class ModAction(Base):
|
|||
return f"{SITE_FULL}/log/{self.id}"
|
||||
|
||||
ACTIONTYPES = {
|
||||
'agendaposter': {
|
||||
'chud': {
|
||||
"str": 'chudded {self.target_link}',
|
||||
"icon": 'fa-snooze',
|
||||
"color": 'bg-danger'
|
||||
|
@ -316,7 +316,7 @@ ACTIONTYPES = {
|
|||
"icon": 'fa-eye-slash',
|
||||
"color": 'bg-danger'
|
||||
},
|
||||
'unagendaposter': {
|
||||
'unchud': {
|
||||
"str": 'unchudded {self.target_link}',
|
||||
"icon": 'fa-snooze',
|
||||
"color": 'bg-success'
|
||||
|
|
|
@ -819,7 +819,7 @@ def unagendaposter(user_id, v):
|
|||
g.db.add(alt)
|
||||
|
||||
ma = ModAction(
|
||||
kind="unagendaposter",
|
||||
kind="unchud",
|
||||
user_id=v.id,
|
||||
target_user_id=user.id
|
||||
)
|
||||
|
@ -1035,7 +1035,7 @@ def agendaposter(user_id, v):
|
|||
if reason: note += f', reason: "{reason}"'
|
||||
|
||||
ma=ModAction(
|
||||
kind="agendaposter",
|
||||
kind="chud",
|
||||
user_id=v.id,
|
||||
target_user_id=user.id,
|
||||
_note=note
|
||||
|
|
Loading…
Reference in New Issue