mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
ParseUrl: Remove image when it doesn't fit the requirements
This commit is contained in:
parent
4a19348900
commit
bb0f3552e2
1 changed files with 4 additions and 0 deletions
|
@ -524,7 +524,11 @@ class ParseUrl
|
||||||
$image['contenttype'] = $photodata['mime'];
|
$image['contenttype'] = $photodata['mime'];
|
||||||
unset($image['url']);
|
unset($image['url']);
|
||||||
ksort($image);
|
ksort($image);
|
||||||
|
} else {
|
||||||
|
$image = [];
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$image = [];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue