techno-tim / littlelink-server

A lightweight, open source, stateless, and self-hosted alternative to linktree in a Docker container!
https://links.technotim.live
MIT License
901 stars 164 forks source link

srcset not updated with AVATAR_URL #4

Closed Choubakawa closed 3 years ago

Choubakawa commented 3 years ago

The attribute srcset of the avatar is not updated with the env var AVATAR_URL, on some device the default image will be display.

Possible fix:

Adding an env var AVATAR_2X_URL to update the attribute would fix the issue or using AVATAR_URL to update srcset (but we will lose the utility of srcset).

timothystewart6 commented 3 years ago

Thank you! Let me work on a fix. I think I will go with your recommendation of AVATAR_2X_URL

timothystewart6 commented 3 years ago

Fixed by https://github.com/techno-tim/littlelink-server/commit/b06bb9443f23b5215fd14475b457728086461cf2