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