We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 3fbcba40 authored by Evan Prodromou's avatar Evan Prodromou

Don't show large image if it's not available

parent 420e7ddf
......@@ -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,7 +724,9 @@ class ActivityObject
$object['avatarLinks'] = $avatarMediaLinks; // extension
// image
$object['image'] = $imgLink->asArray();
if (!empty($imgLink)) {
$object['image'] = $imgLink->asArray();
// objectType
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment