neobooru / SzuruChrome

Chrome/Firefox extension which can import media from various sites into a szurubooru instance.
MIT License
42 stars 5 forks source link

Check for tag aliases when loading tag count #55

Closed G1org1owo closed 4 months ago

G1org1owo commented 4 months ago

I am not sure whether this is intentional or not, but when the tag being imported is an alias of the tag on the destination booru, the tag count doesn't show up.

Example: if I'm trying to import a vtuber tag, which is an alias for virtual_youtuber on my booru but isn't the first name, then the tag count isn't shown.

In my first commit I addressed the issue, in the second I tried to refactor the code but I am not sure whether this is actually "better code", as I don't have much experience with code style in js.

neobooru commented 4 months ago

Looks good, thanks!