aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steele Farnsworth <[email protected]>2025-02-11 14:56:07 -0500
committerGravatar GitHub <[email protected]>2025-02-11 14:56:07 -0500
commita544c4eec3be4497e1280d948bef442c3e1cbe9d (patch)
treeba00938f4cad9202ff09cd8ea372062a89db2437
parentUse `"charset" in Attachment.content_type` to determine that it's text-based. (diff)
parentIgnore both archived and locked posts when archiving idle (diff)
Merge branch 'main' into swfarnsworth/fix-auto-upload
-rw-r--r--bot/exts/help_channels/_channel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/help_channels/_channel.py b/bot/exts/help_channels/_channel.py
index 4e65d9379..cd1a0ac58 100644
--- a/bot/exts/help_channels/_channel.py
+++ b/bot/exts/help_channels/_channel.py
@@ -198,7 +198,7 @@ async def maybe_archive_idle_post(post_id: int, scheduler: scheduling.Scheduler)
log.trace(f"Not closing missing post #{post} ({post.id}).")
return
- if post.locked:
+ if post.archived or post.locked:
log.trace(f"Not closing already closed post #{post} ({post.id}).")
return