From b8a4c260ea387032b40e0add2d32ff39090bc119 Mon Sep 17 00:00:00 2001 From: Linus Svensson Date: Fri, 19 Jan 2024 23:38:21 +0100 Subject: [PATCH 1/4] Update README.md Added information about Mk 2. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0d338fc..580649a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +# Mk 2 + +Version 2 of the crossposter has now been release in beta, found under the crossposter-mk2-beta branch. The new version contains a bunch of new options, along with fixes and restructuring. To start using the new version I recommend making a new, separate installation and transferring yout settings and database to the new version. + # bluesky-crossposter The Bluesky Crossposter is a python script that when running will automatically post your bluesky-posts to mastodon and twitter, excluding responses and reposts. The script can handle threads, quote posts of your own posts, and image posts, including alt text on images. From 4fa16cef71fb6e876bb7d19f0f9554a609fb6533 Mon Sep 17 00:00:00 2001 From: Linus Svensson Date: Sat, 20 Jan 2024 12:27:25 +0100 Subject: [PATCH 2/4] Update settings.py --- settings/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/settings/settings.py b/settings/settings.py index 92752ef..dda0817 100644 --- a/settings/settings.py +++ b/settings/settings.py @@ -35,7 +35,7 @@ post_default = True # Accepted values: Any language tag in quotes (https://en.wikipedia.org/wiki/IETF_language_tag) mastodon_lang = "" twitter_lang = "" -# quote_posts determines if quote reposts of other posts should be crossposted with the quoted post included as a link. If False these posts will be ignored. +# quote_posts determines if quote reposts of other users' posts should be crossposted with the quoted post included as a link. If False these posts will be ignored. quote_posts = True # max_retries sets maximum amount of times poster will retry a failed crosspost. # Accepted values: Integers greater than 0 @@ -75,4 +75,4 @@ overflow_posts = int(os.environ.get('OVERFLOW_POST')) if os.environ.get('OVERFLO max_per_hour = 0 -over_flow_posts = "retry" \ No newline at end of file +over_flow_posts = "retry" From 3b6082b4cce7d599977eb7755a563f80ffb6caa5 Mon Sep 17 00:00:00 2001 From: Linus Svensson Date: Sat, 20 Jan 2024 12:33:28 +0100 Subject: [PATCH 3/4] Update README.md Listing new functions --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 580649a..6fd0564 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,12 @@ Version 2 of the crossposter has now been release in beta, found under the crossposter-mk2-beta branch. The new version contains a bunch of new options, along with fixes and restructuring. To start using the new version I recommend making a new, separate installation and transferring yout settings and database to the new version. +New functions include: +- Reposting your own posts (only works on Mastodon unless you pay for a higher level of twitters API) +- Quote posts of other people's posts, with their posts included as a link to Bluesky (can be toggled on/off in settings and automatically skips posts from users whos posts are not public). +- Username handling allows you to either skip posts where you mention another Bluesky user, or cleanup of username so that they are not interpreted as users after being crossposted. +- Limiting posts per hour, either skipping posts that go over the posts per hour limit, or sending them at a later time. + # bluesky-crossposter The Bluesky Crossposter is a python script that when running will automatically post your bluesky-posts to mastodon and twitter, excluding responses and reposts. The script can handle threads, quote posts of your own posts, and image posts, including alt text on images. From c47fc9e5bc2cc42ae6a6ee10170e7ee9d1945e06 Mon Sep 17 00:00:00 2001 From: linus2punkt0 Date: Mon, 22 Jan 2024 12:22:55 +0100 Subject: [PATCH 4/4] Fix issue with textless tweets --- output/twitter.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/output/twitter.py b/output/twitter.py index 38206d5..2f7b3e5 100644 --- a/output/twitter.py +++ b/output/twitter.py @@ -36,9 +36,6 @@ def tweet(post, reply_to_post, quoted_post, images, allowed_reply): partTwo = "" if len(post) > 280: post, partTwo = split_post(post) - # If the function does not return a post, splitting failed and we will skip this post. - if not post: - return "skipped" a = twitter_client.create_tweet(text=post, reply_settings=reply_settings, quote_tweet_id=quoted_post, in_reply_to_tweet_id=reply_to_post, media_ids=media_ids) write_log("Posted to twitter") id = a[0]["id"]