Should t
tags be set to all lowercase?
#974
Replies: 7 comments 7 replies
-
There is no rule, but in Amethyst we always add the original case and lowercase and when we filter, we always filter for both too. |
Beta Was this translation helpful? Give feedback.
-
I think we could say they should always be lowercase. That would simplify things. |
Beta Was this translation helpful? Give feedback.
-
Relays should ideally return case-insensitive results for tag filters. I think clients should preserve their case, so #SusanAlbumParty doesn't become #susanalbumparty |
Beta Was this translation helpful? Give feedback.
-
I'd rather not special-case any behavior for "#t" tags. Everything else is exact string match, |
Beta Was this translation helpful? Give feedback.
-
Agree it should be lowercased, when implementing tags I was surprised this wasn't the case and the solution to overload with all tag variants (which im reluctantly doing now) is unnecessary if all clients can agree to just do lowercase (create and query). |
Beta Was this translation helpful? Give feedback.
-
damus lowercases hashtags when adding the tag, it's the only sane thing to do. |
Beta Was this translation helpful? Give feedback.
-
I also prefer lowercase, however @alexgleason has a point that information is lost. It's helpful for readability to allow users looking through a list of topics to be able to read them as originally formatted, for example "MyLongTopic". Lowercasing requires clients to pull the topic's casing from content to get the correct casing. I think worth it, but something to consider. |
Beta Was this translation helpful? Give feedback.
-
I'm not seeing anything about if
t
(hashtag) tags content should be lowercase or not? It seems like some clients I'm looking at are setting them to all lowercase. One project I built doesn't modify it from the original input. But I can't figure out if that is incorrect or not.Or, is it the relays responsibility to return filtered
t
content that is case-insensitive?Beta Was this translation helpful? Give feedback.
All reactions