diff options
| author | Pinapelz <donaldshan1@outlook.com> | 2025-12-03 17:59:25 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-03 17:59:25 -0800 |
| commit | eda541542ab7a1e4e4b6fafe02b2ce8f7f2e7f17 (patch) | |
| tree | 6d8f078987cd7c248ec65ccaa2d9b5f22cdc4777 | |
| parent | 2ad7232e56d04528c9ec6864925d9e9d472bf42e (diff) | |
wow this is why I should not code in a rush
| -rw-r--r-- | rasis.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 = { |
