small ui fix

This commit is contained in:
2026-02-06 22:56:35 +01:00
parent ae7cf1ff64
commit 2b992bfe81

View File

@@ -999,11 +999,9 @@ function isValidImageUrl(url) {
"rebrand.ly",
"steamcommunity.com",
"store.steampowered.com",
"imgur.com",
];
if (bannedHosts.some((h) => host === h)) return false;
if (host === "imgur.com" && !u.pathname.startsWith("/a/") && !u.pathname.startsWith("/gallery/")) return false;
if (host === "steamcommunity.com") return false;
const path = u.pathname.toLowerCase();
return [".png", ".jpg", ".jpeg", ".gif", ".webp", ".avif"].some((ext) =>
path.endsWith(ext),