diff --git a/README.md b/README.md index 0d338fc..6fd0564 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,13 @@ +# 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. + +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. diff --git a/output/twitter.py b/output/twitter.py index 1529739..e311a3f 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"] diff --git a/settings/settings.py b/settings/settings.py index d17bc19..da44e10 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