Don't show large image if it's not available
This commit is contained in:
parent
420e7ddf83
commit
3fbcba40a6
@ -699,7 +699,7 @@ class ActivityObject
|
||||
// XXX: Not sure what the best avatar is to use for the
|
||||
// author's "image". For now, I'm using the large size.
|
||||
|
||||
$avatarLarge = null;
|
||||
$imgLink = null;
|
||||
$avatarMediaLinks = array();
|
||||
|
||||
foreach ($this->avatarLinks as $a) {
|
||||
@ -724,8 +724,10 @@ class ActivityObject
|
||||
$object['avatarLinks'] = $avatarMediaLinks; // extension
|
||||
|
||||
// image
|
||||
if (!empty($imgLink)) {
|
||||
$object['image'] = $imgLink->asArray();
|
||||
}
|
||||
}
|
||||
|
||||
// objectType
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user