From eda541542ab7a1e4e4b6fafe02b2ce8f7f2e7f17 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Wed, 3 Dec 2025 17:59:25 -0800 Subject: wow this is why I should not code in a rush --- rasis.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rasis.py b/rasis.py index 97c0e3f..2275cd1 100644 --- a/rasis.py +++ b/rasis.py @@ -120,7 +120,9 @@ def generate_post_content(post_data: dict) -> str: def post_on_fedi(content: str, dry_run: bool = False) -> bool: """Post content to Fediverse""" - print(f"[DRY RUN] Would post:\n{'-' * 60}\n{content}\n{'-' * 60}") + if dry_run: + print(f"[DRY RUN] Would post:\n{'-' * 60}\n{content}\n{'-' * 60}") + return True try: conn = http.client.HTTPSConnection(os.environ.get("SHARKEY_INSTANCE")) payload = { -- cgit v1.2.3