mirror of
https://codeberg.org/catask-org/catask.git
synced 2025-04-18 12:53:42 -05:00
add a thread for bluesky crosspost
This commit is contained in:
parent
76b5c58b50
commit
f45689c3b8
1 changed files with 4 additions and 0 deletions
4
app.py
4
app.py
|
@ -718,6 +718,10 @@ def addAnswer():
|
||||||
fedi_crosspost_thread = threading.Thread(target=func.postOnFediverse, name=f"fediverse crosspost thread for {question_id}", args=(question_id, answer, cw,))
|
fedi_crosspost_thread = threading.Thread(target=func.postOnFediverse, name=f"fediverse crosspost thread for {question_id}", args=(question_id, answer, cw,))
|
||||||
fedi_crosspost_thread.start()
|
fedi_crosspost_thread.start()
|
||||||
|
|
||||||
|
if cfg['crosspost']['bluesky']['enabled']:
|
||||||
|
bsky_crosspost_thread = threading.Thread(target=func.postOnBluesky, name=f"bluesky crosspost thread for {question_id}", args=(question_id, answer, cw,))
|
||||||
|
bsky_crosspost_thread.start()
|
||||||
|
|
||||||
return return_val
|
return return_val
|
||||||
|
|
||||||
# -- uploaders --
|
# -- uploaders --
|
||||||
|
|
Loading…
Add table
Reference in a new issue