ckolderup / postmarks

a single-user bookmarking website designed to live on the Fediverse
https://postmarks.glitch.me
MIT License
452 stars 38 forks source link

Tag Filter doesn't match on entire tag #152

Closed TomCasavant closed 8 months ago

TomCasavant commented 8 months ago

Basically if a tag is within another tag it gets included in the /tagged/ filter view

e.g. filtering tags with "#AI" (/tagged/AI) will include a bookmark with the tag "#Mail" because of the 'ai' in 'mail'.

Along the same lines and probably related so I won't put it in a different issue. Capitalization doesn't matter for the filter but it does seem to matter when highlighting the selected tag.

e.g. /tagged/AI and /tagged/ai will return the same results (which I would think is what we want) but it will only mark the tag that matches the capitalization exactly

/tagged/AI image

/tagged/ai image

note how the /tagged/ai doesn't highlight '#AI' as selected