Add avatars and notice info

This commit is contained in:
Zach Copley
2011-02-16 18:55:13 -08:00
parent b1675ff175
commit a199192ebf
3 changed files with 39 additions and 20 deletions

View File

@@ -437,10 +437,14 @@ class Activity
/* Purely extensions hereafter */
if ($this->verb == ActivityVerb::POST) {
$activity['noticeInfo'] = $this->noticeInfo;
}
// XXX: a bit of a hack... Since JSON isn't namespaced we probably
// shouldn't be using 'statusnet:notice_info', but this will work
// for the moment.
foreach ($this->extra as $e) {
list($objectName, $props, $txt) = $e;
$activity[$objectName] = $props;
}
return array_filter($activity);
}