mirror of
https://github.com/friendica/friendica
synced 2025-04-22 07:50:11 +00:00
Config for receiver / fix fatals
This commit is contained in:
parent
f0499e7269
commit
b63ad63c29
5 changed files with 14 additions and 6 deletions
|
@ -352,11 +352,11 @@ class Photo extends BaseModule
|
|||
}
|
||||
if (empty($mimetext)) {
|
||||
if ($customsize <= Proxy::PIXEL_MICRO) {
|
||||
$url = Contact::getDefaultAvatar($contact, Proxy::SIZE_MICRO);
|
||||
$url = Contact::getDefaultAvatar($contact ?: [], Proxy::SIZE_MICRO);
|
||||
} elseif ($customsize <= Proxy::PIXEL_THUMB) {
|
||||
$url = Contact::getDefaultAvatar($contact, Proxy::SIZE_THUMB);
|
||||
$url = Contact::getDefaultAvatar($contact ?: [], Proxy::SIZE_THUMB);
|
||||
} else {
|
||||
$url = Contact::getDefaultAvatar($contact, Proxy::SIZE_SMALL);
|
||||
$url = Contact::getDefaultAvatar($contact ?: [], Proxy::SIZE_SMALL);
|
||||
}
|
||||
}
|
||||
return MPhoto::createPhotoForExternalResource($url, 0, $mimetext);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue