fix double tweet

This commit is contained in:
2025-04-28 21:42:21 +10:00
parent ea7d36a22b
commit 8323744953
3 changed files with 43 additions and 17 deletions
+4 -2
View File
@@ -307,7 +307,8 @@ def curate_from_rss():
image_source=image_source,
uploader=uploader,
pixabay_url=pixabay_url,
interest_score=interest_score
interest_score=interest_score,
post_tweet=True # Post the X tweet on the first call
)
finally:
is_posting = False
@@ -328,7 +329,8 @@ def curate_from_rss():
uploader=uploader,
pixabay_url=pixabay_url,
interest_score=interest_score,
post_id=post_id
post_id=post_id,
post_tweet=False # Skip X tweet on the update call
)
finally:
is_posting = False