You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be good to have parity here. Personally I'd prefer the behaviour of the web version, as I think I saw a post where the link didn't cover the "#".
The text was updated successfully, but these errors were encountered:
Interesting, I had no idea the web app does any parsing of its own. I thought it just trusts what the server returns like I do. I've noticed that Friendica does the same thing with not including the # in the link. Just for reference, here's a Friendica post in the web app:
Here's the same post in Smithereen (that doesn't support hashtags at all so treats them as links):
@Gargron what's your opinion on this? To me it feels like something that should be handled server-side.
@Gargron what's your opinion on this? To me it feels like something that should be handled server-side.
For what it's worth, I made a quick patch to achieve parity here.
I think it would be possible and helpful to overall match by href instead or additionally though,
as that would additionally avoid compatibility issues with Mastodon's Unicode folding in hashtags.
Mastodon for Android requires the
hashtag
class
ona
nchor elements to treat them as hashtag links:mastodon-android/mastodon/src/main/java/org/joinmastodon/android/ui/text/HtmlParser.java
Lines 148 to 153 in 9361c6d
The web interface does not (and also covers hashtag links with outer "#"): https://github.com/mastodon/mastodon/blob/67a8d4638c6e6a3ef178258504a6535746608c42/app/javascript/hooks/useLinks.ts#L13-L15
This occasionally causes trouble: snarfed/bridgy-fed#1634 (comment)
It would be good to have parity here. Personally I'd prefer the behaviour of the web version, as I think I saw a post where the link didn't cover the "#".
The text was updated successfully, but these errors were encountered: