rename 2 modlog actions

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-11-07 03:47:27 +02:00
parent b526f6cc21
commit a664d19c37
2 changed files with 4 additions and 4 deletions

View File

@ -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'

View File

@ -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