diff options
author | Evan Prodromou <evan@status.net> | 2010-03-02 02:57:35 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-03-02 02:57:35 -0500 |
commit | 2526a5ae94df92afc667f6e50c51843a7b346586 (patch) | |
tree | 12edd24ae95c22af1f98fd4fe2a214c6dd7d2068 /classes | |
parent | f504a9237e64c49286b355de87ea59abe14b1090 (diff) | |
parent | c25fc8a4b51466f13c41efc0565bf15f78f6cb4d (diff) |
Merge branch 'master' into testing
Diffstat (limited to 'classes')
-rw-r--r-- | classes/Notice.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index 3702dbcfa..4b5dbb416 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -1090,7 +1090,7 @@ class Notice extends Memcached_DataObject return $groups; } - function asAtomEntry($namespace=false, $source=false) + function asAtomEntry($namespace=false, $source=false, $author=true) { $profile = $this->getProfile(); @@ -1136,8 +1136,10 @@ class Notice extends Memcached_DataObject $xs->element('title', null, $this->content); $xs->element('summary', null, $this->content); - $xs->raw($profile->asAtomAuthor()); - $xs->raw($profile->asActivityActor()); + if ($author) { + $xs->raw($profile->asAtomAuthor()); + $xs->raw($profile->asActivityActor()); + } $xs->element('link', array('rel' => 'alternate', 'type' => 'text/html', |