mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
merge commit
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import bytes from "bytes";
|
||||
import { castToBoolean } from "@/lib/utils.tsx";
|
||||
import { AvatarIconType } from "@/features/attachments/types/attachment.types.ts";
|
||||
import { sanitizeUrl } from "@docmost/editor-ext";
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
@@ -66,7 +67,7 @@ export function getFileUrl(src: string) {
|
||||
if (src.startsWith("/files/")) {
|
||||
return getBackendUrl() + src;
|
||||
}
|
||||
return src;
|
||||
return sanitizeUrl(src);
|
||||
}
|
||||
|
||||
export function getFileUploadSizeLimit() {
|
||||
|
||||
Reference in New Issue
Block a user