SpigotMC / XenforoResourceManagerAPI

Exposes resource/author information via a simple JSON REST API
BSD 3-Clause "New" or "Revised" License
79 stars 7 forks source link

Wrong default icon #52

Closed itaquito closed 2 years ago

itaquito commented 3 years ago

Hey! When you try to get the icon of a resource that doesn't have one, you get the link of the default one. Everything good on that, except that is showing the wrong default icon...

This is the default icon the API shows: https://www.spigotmc.org/styles/default/xenresource/resource_icon.png But this is the one Spigot uses: https://static.spigotmc.org/styles/spigot/xenresource/resource_icon.png (or https://www.spigotmc.org/styles/spigot/xenresource/resource_icon.png) I'm not sure which URL you should use, probably the first one. For sure md_5 knows.

Thanks again.

md-5 commented 3 years ago

Yup.

Should probably add a PUBLIC_PATH_STATIC or something for the default avatar too

jacobsandersen commented 3 years ago

Good catch! Will submit a patch soon.