Posting to Bluesky via the API from PHP – Part Nine – Handling Hashtags

Bluesky has gone from a very niche platform to one that is getting more coverage and seeing explosive growth thanks in part to the actions of the overlord at Twitter. The following was the count of users when I wrote this post.

Expanding functionality

At the same time as the user growth, the platform itself has been growing features to bring it more in line with what its competitors are offering. This includes hashtags, which are now fully supported both in the app and API. What this also means is that I can now add support for them to my library: php2Bluesky.

The good news is that other than updating the code you don’t need to do anything for hashtags to be supported. The new version of php2Bluesky includes support for:

  • multiple hashtags in a single post
  • ignoring punctuation at the end of an hashtag
  • ignoring hashes in urls

If this is something that you have been waiting for you can get the code now from the Github page.

You can read all the posts on the PHP2Bluesky library here and get in touch if you find any issues or have an enhancement suggestion.

Leave a Reply

Your email address will not be published. Required fields are marked *