Conversation
Notices
-
@frogzone @icedquinn @silverpill @p @nimda So I implemented the hashtag search and hashtag timeline, it was pretty straightforward. But there doesn't seem to be an easy way to detect hashtags that are part of a post (required to redirect to the hashtag timeline by clicking on a hashtag). The way bloat handles mentions and emojis is by matching the appropriate URLs provided in the response and then doing a simple string replacement. In case of hashtags, the tags inside the post content have remote URLs, but the actual tags array has the local URLs, so it's not possible to do the matching. I looked at how Pleroma-fe works, turns out, it doesn't do the replacement, but instead handles the click event on the tag and then extracts the tag name from the URL to redirect to the Pleroma-fe's hashtag timeline page.