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

Commit 1166f9d7 authored by Evan Prodromou's avatar Evan Prodromou

preserve activities in object

parent df18ba2f
......@@ -28,6 +28,8 @@
class UserActivityStream extends AtomUserNoticeFeed
public $activities = array();
function __construct($user, $indent = true)
parent::__construct($user, null, $indent);
......@@ -45,10 +47,15 @@ class UserActivityStream extends AtomUserNoticeFeed
usort($objs, 'UserActivityStream::compareObject');
foreach ($objs as $obj) {
$act = $obj->asActivity();
$this->activities[] = $obj->asActivity();
function renderEntries()
foreach ($this->activities as $act) {
// Only show the author sub-element if it's different from default user
$str = $act->asString(false, ($act->actor->id != $this->user->uri));
$act->outputTo($this, false, ($act->actor->id != $this->user->uri));
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