Fix threading args was not calling it correctly
This commit is contained in:
parent
3cae3a8f37
commit
3c6ca4dd4c
|
@ -61,7 +61,7 @@ def add_igaccount(acc_id):
|
|||
return 0
|
||||
|
||||
def update_igaccount_async(acc_id):
|
||||
threading.Thread(target=update_igaccount, args=(acc_id)).start()
|
||||
threading.Thread(target=update_igaccount, args=(acc_id,)).start()
|
||||
|
||||
def update_igaccount(acc_id):
|
||||
# if account does not exist, we stop the mirroring process
|
||||
|
@ -175,7 +175,6 @@ def pixelfed_dlposts(acc_id, data):
|
|||
caption = caption[0:136]+'...' if len(caption) > 140 else caption
|
||||
jsdata['alt'] = altcaption[0:136]+'...' if len(altcaption) > 140 else altcaption
|
||||
jsdata['cw'] = False
|
||||
print(jsdata)
|
||||
r = requests.post('https://'+config()['instance']+'/api/compose/v0/publish',\
|
||||
json={"media": [jsdata], "caption": caption, "visibility": "public", "cw": False,\
|
||||
"comments_disabled": False, "place": False, "tagged": [],"optimize_media": True},\
|
||||
|
|
Loading…
Reference in New Issue