mirror of
https://github.com/friendica/friendica
synced 2025-04-19 06:30:10 +00:00
Merge pull request #11790 from annando/fetchactivity
Negative caching / config for receiver / fix fatals
This commit is contained in:
commit
5ec407699b
5 changed files with 21 additions and 7 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