mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-07 05:13:01 +00:00
fix(logs): suppress dm sync spam and allow local image paths
This commit is contained in:
1 parent
b24aac7349
commit
5ed5554f51
3 files changed
+14
-5
No files matched your search
@@ -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}`;
|
||||
|
||||
Reference in new issue
Block a user