• Resolved lakuma

    (@lakuma)


    I have Automatically share posts to Bluesky enabled.

    However, when I publish a post, I get the following error message within Autoblue.

    Failed to share post with ID 263514 to Bluesky: InvalidRequest: Invalid app.bsky.feed.post record: Record/text must not be longer than 300 graphemes

    I understand why it’s failing, because the post is over the limit of 300 characters. Shouldn’t this plugin only post to Bluesky below the limits automatically? I’m obviously going to have blog posts over this character limit.

    I would also like to ask for a new feature in the settings. Allow us to add standard #hashtags automatically with every post.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Daniel Post

    (@danielpost)

    Thanks for letting me know! This is a bug in Autoblue and will be fixed in the next version that should come out this week. It’s supposed to trim the text automatically, but there’s a bug in the logic.

    As for your request to add hashtags automatically: I think this is a bit niche to add as a default setting, but I’m adding a filter that will let you do that very easily with a few lines of code. I will share some sample code here when the next version is released.

    Plugin Author Daniel Post

    (@danielpost)

    @lakuma v0.0.5 has been released, which fixes the issue. Thank you for your patience.

    I’ve also added a new filter autoblue/share_message which can be used to add hashtags to the end of your message:

    add_filter(
    'autoblue/share_message',
    function ( $message ) {
    $tags = [ 'tag-one', 'tag-two' ];
    $tags = array_map( fn( $tag ) => '#' . sanitize_title( $tag ), $tags );
    return $message . ' ' . implode( ' ', $tags );
    }
    );
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Record/text must not be longer than 300 graphemes’ is closed to new replies.