This commit is contained in:
Untone 2024-03-22 08:29:37 +03:00
parent db830308e9
commit e3c00cc6cd

View File

@ -15,7 +15,7 @@ export const getImageUrl = (
src: string,
options: { width?: number; height?: number; noSizeUrlPart?: boolean } = {},
) => {
if (!src.includes('discours.io') || src.includes('http')) {
if (!src.includes('discours.io') && src.includes('http')) {
return src
}
const filename = src.toLowerCase().split('/').pop()