From 8c80ecbfd11a86abfa5fd06c94b1ac033729c254 Mon Sep 17 00:00:00 2001 From: Linus2punkt0 Date: Sun, 27 Aug 2023 23:57:24 +0200 Subject: [PATCH] Fixed error that would make crossposter only post replies --- crosspost.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crosspost.py b/crosspost.py index 4f5b4b2..ac3c06b 100644 --- a/crosspost.py +++ b/crosspost.py @@ -76,7 +76,8 @@ def getPosts(): replyToUser = getReplyToUser(feed_view.post.record.reply) replyTo = feed_view.post.record.reply.parent.cid # If unable to fetch user that was replied to, code will skip this post. - if not replyToUser: + if (postType == "reply" or postType == "quote") and not replyToUser: + writeLog("Unable to find the user that this post replies to or quotes") continue # Checking if post is by user (i.e. not a repost), withing the last 12 hours and either not a reply or a reply in a thread. if feed_view.post.author.handle == bsky_handle and timestamp > datetime.now() - timedelta(hours = 12) and replyToUser == bsky_handle: