Skip to content

Commit b88dcb7

Browse files
committed
fix: include approval actions in show_only_removals query
- Add approvelink and approvecomment to show_only_removals action set - Fixes issue where human approvals of auto removals weren't appearing in wiki - Ensures all relevant moderation actions are displayed
1 parent 6ab14b4 commit b88dcb7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modlog_wiki_publisher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,12 +613,12 @@ def get_recent_actions_from_db(config: Dict[str, Any], force_all_actions: bool =
613613
logger.info(f"Force refresh: including all action types: {wiki_actions}")
614614
elif show_only_removals:
615615
wiki_actions = set([
616-
'removelink', 'removecomment', 'addremovalreason', 'spamlink', 'spamcomment'
616+
'removelink', 'removecomment', 'addremovalreason', 'spamlink', 'spamcomment', 'approvelink', 'approvecomment'
617617
])
618618
else:
619619
# Get configurable list of actions to show in wiki
620620
wiki_actions = set(config.get('wiki_actions', [
621-
'removelink', 'removecomment', 'addremovalreason', 'spamlink', 'spamcomment'
621+
'removelink', 'removecomment', 'addremovalreason', 'spamlink', 'spamcomment', 'approvelink', 'approvecomment'
622622
]))
623623

624624
# Get recent actions within retention period

0 commit comments

Comments
 (0)