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)