hoarder-app / hoarder

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
https://hoarder.app
GNU Affero General Public License v3.0
2.28k stars 77 forks source link

AI infered tags can contain " " at the beginning #184

Closed kamtschatka closed 3 weeks ago

kamtschatka commented 1 month ago

Might also be happening on the end, I haven't tried that, but when I looked at the database, I can see the tag being named " DIY" instead of "DIY". This leads to the scenario where you can actually create tags, that seemingly already exist: image

image

I guess just a quick trim() would be a good idea before creating tags?

MohamedBassem commented 1 month ago

Good catch

I guess just a quick trim() would be a good idea before creating tags?

Yup, let's do it!