diff --git a/igmirror.py b/igmirror.py index 13efd71..e85565e 100644 --- a/igmirror.py +++ b/igmirror.py @@ -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},\