and
This commit is contained in:
parent
db830308e9
commit
e3c00cc6cd
|
@ -15,7 +15,7 @@ export const getImageUrl = (
|
||||||
src: string,
|
src: string,
|
||||||
options: { width?: number; height?: number; noSizeUrlPart?: boolean } = {},
|
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
|
return src
|
||||||
}
|
}
|
||||||
const filename = src.toLowerCase().split('/').pop()
|
const filename = src.toLowerCase().split('/').pop()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user