feat: add support for super stickers in chat and overlay components, including image display, accessibility labels, and backend parsing enhancements

This commit is contained in:
Yusuf İpek
2025-10-12 21:37:53 +03:00
parent da1499733f
commit 1678117d16
10 changed files with 138 additions and 15 deletions
+8 -3
View File
@@ -224,13 +224,18 @@ export async function startBackend() {
return { error: 'url parameter is required' };
}
// Only allow YouTube CDN domains
const allowedDomains = ['yt3.ggpht.com', 'yt4.ggpht.com', 'i.ytimg.com'];
// Only allow YouTube CDN and Google User Content domains
const allowedDomains = [
'yt3.ggpht.com',
'yt4.ggpht.com',
'i.ytimg.com',
'lh3.googleusercontent.com' // For super stickers
];
try {
const urlObj = new URL(url);
if (!allowedDomains.includes(urlObj.hostname)) {
reply.status(403);
return { error: 'Only YouTube CDN URLs are allowed' };
return { error: 'Only YouTube CDN and Google User Content URLs are allowed' };
}
} catch (error) {
reply.status(400);