From 5b236951388b4f9ede5a44221fa1824661609fa1 Mon Sep 17 00:00:00 2001 From: SpackledJim Date: Sat, 3 Oct 2026 12:20:41 +0000 Subject: [PATCH] fix: don't fail forum post creation when pinning fails A failed pin (e.g. missing Pin Messages permission) threw out of createForumPost after the thread already existed, so the show was never saved and a retry created a duplicate thread. Log a warning and continue. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01S9oMx1pYL6igWuytQyqSTa --- src/commands/post.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands/post.ts b/src/commands/post.ts index 2916447..bb526d0 100644 --- a/src/commands/post.ts +++ b/src/commands/post.ts @@ -253,7 +253,11 @@ async function createForumPost( }, }) - await result.lastMessage?.pin() + try { + await result.lastMessage?.pin() + } catch (error) { + console.warn(`Could not pin post for ${seriesName}:`, error) + } return result }