From 127789c1e44fcb2031aa61f7ed09012304d59f51 Mon Sep 17 00:00:00 2001 From: mst Date: Fri, 28 Mar 2025 21:11:31 +0300 Subject: [PATCH] fix a crosspost bug --- functions.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/functions.py b/functions.py index 7aeda68..6cc8b84 100644 --- a/functions.py +++ b/functions.py @@ -360,9 +360,6 @@ def postOnFediverse(question_id: int, answer: str, cw: str) -> None: elif cw and not question.get('cw'): warning += f", {cw}" - else: - warning = "" - post_content = f"{question['content']} — {answer} {cfg['instance']['fullBaseUrl']}/q/{question['id']}/" fedi_client.status_post(post_content, visibility=cfg['crosspost']['fediverse']['visibility'], spoiler_text=warning)