fix: allow image proxy for basic and anonymous user

This commit is contained in:
Stephen Zhou 2025-11-20 15:32:45 +08:00
parent 9347e80bfd
commit 11aa71a682
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

View File

@ -1,8 +1,7 @@
export const IMAGE_PROXY_URL = "https://webp.follow.is"
const canUseImageProxy = (userRole?: string | null): boolean => {
if (!userRole) return false
return userRole === "plus" || userRole === "pro"
return userRole === "plus" || userRole === "pro" || userRole === "basic" || !userRole
}
export const imageRefererMatches = [