mirror of
https://github.com/d0zingcat/bluesky-crossposter.git
synced 2026-05-23 07:26:43 +00:00
fixed a bug causing quote posts to be treated as replies
This commit is contained in:
@@ -200,7 +200,7 @@ def post(posts):
|
||||
replyTo = posts[cid]["replyTo"]
|
||||
images = posts[cid]["images"]
|
||||
postType = posts[cid]["type"]
|
||||
langs = postType = posts[cid]["langs"]
|
||||
langs = posts[cid]["langs"]
|
||||
tweetReply = ""
|
||||
tootReply = ""
|
||||
# If it is a reply, we get the IDs of the posts we want to reply to from the database.
|
||||
@@ -286,7 +286,7 @@ def tweet(post, replyTo, images, postType, doPost):
|
||||
# and if neither it is just posted as a text post.
|
||||
if replyTo and mediaIds and postType == "quote":
|
||||
a = twitter.create_tweet(text=post, quote_tweet_id=replyTo, media_ids=mediaIds)
|
||||
elif replyTo and mediaIds:
|
||||
elif replyTo and mediaIds and postType == "reply":
|
||||
a = twitter.create_tweet(text=post, in_reply_to_tweet_id=replyTo, media_ids=mediaIds)
|
||||
elif postType == "quote":
|
||||
a = twitter.create_tweet(text=post, quote_tweet_id=replyTo)
|
||||
|
||||
Reference in New Issue
Block a user