fix(logs): suppress dm sync spam and allow local image paths

This commit is contained in:
google-labs-jules[bot] committed 2026-01-05 21:23:32 +00:00
1 parent b24aac7349
commit 5ed5554f51
3 files changed
+14 -5

No files matched your search

+4
View File
@@ -62,6 +62,10 @@ export function sanitizeProfileMediaUrl(value) {
return trimmed;
}
if (/^images\//i.test(trimmed)) {
return trimmed;
}
if (!/^https?:\/\//i.test(trimmed)) {
if (LOCALHOST_PATTERN.test(trimmed)) {
trimmed = `http://${trimmed}`;