fix: update SQL queries to filter reviews with null remote_actor_url

This commit is contained in:
2026-06-30 02:57:58 +02:00
parent 10c811d9a7
commit 9f6ba55afc
3 changed files with 3 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ export const API_URL = import.meta.env.VITE_API_URL ?? ""
export function posterUrl(path: string | undefined | null): string | undefined {
if (!path) return undefined
if (path.startsWith("http://") || path.startsWith("https://")) return path
const clean = path.startsWith("/") ? path.slice(1) : path
return `${API_URL}/images/${clean}`
}