mirror of
https://codeberg.org/catask-org/catask.git
synced 2025-04-18 12:53:42 -05:00
fix a crosspost bug
This commit is contained in:
parent
48470f6152
commit
127789c1e4
1 changed files with 0 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue