const PLACE = 'http://activitystrea.ms/schema/1.0/place';
const COMMENT = 'http://activitystrea.ms/schema/1.0/comment';
// ^^^^^^^^^^ tea!
+ const ACTIVITY = 'http://activitystrea.ms/schema/1.0/activity';
// Atom elements we snarf
// 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) {
$object['avatarLinks'] = $avatarMediaLinks; // extension
// image
- $object['image'] = $imgLink->asArray();
+ if (!empty($imgLink)) {
+ $object['image'] = $imgLink->asArray();
+ }
}
// objectType