diff options
author | 2025-02-11 14:56:07 -0500 | |
---|---|---|
committer | 2025-02-11 14:56:07 -0500 | |
commit | a544c4eec3be4497e1280d948bef442c3e1cbe9d (patch) | |
tree | ba00938f4cad9202ff09cd8ea372062a89db2437 | |
parent | Use `"charset" in Attachment.content_type` to determine that it's text-based. (diff) | |
parent | Ignore 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.py | 2 |
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 |