fix double tweet
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user