aboutsummaryrefslogtreecommitdiffstats
path: root/rasis.py
diff options
context:
space:
mode:
Diffstat (limited to 'rasis.py')
-rw-r--r--rasis.py4
1 files changed, 3 insertions, 1 deletions
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 = {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage