Skip to content

Commit effc9cd

Browse files
bakerboy448claude
andcommitted
Show all removal reason information, never use generic message
Removes logic that hides removal reason template numbers (1-15) behind generic "Removal reason applied" message. Now shows all available removal reason data including template numbers for full transparency. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d16e916 commit effc9cd

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

modlog_wiki_publisher.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -473,14 +473,10 @@ def store_processed_action(action, subreddit_name=None):
473473
# First priority: mod_note (actual removal reason text)
474474
if hasattr(action, 'mod_note') and action.mod_note:
475475
removal_reason = censor_email_addresses(str(action.mod_note).strip())
476-
# Second priority: details (accept all non-empty details text)
476+
# Second priority: details (accept ALL details text, including numbers)
477477
elif hasattr(action, 'details') and action.details:
478478
details_str = str(action.details).strip()
479-
# Only show generic message for removal reason template numbers (1-15)
480-
if details_str.isdigit() and 1 <= int(details_str) <= 15:
481-
removal_reason = "Removal reason applied"
482-
else:
483-
removal_reason = censor_email_addresses(details_str)
479+
removal_reason = censor_email_addresses(details_str)
484480

485481
# Extract subreddit from URL if not provided
486482
target_permalink = get_target_permalink(action)

0 commit comments

Comments
 (0)