Revert "Show <activity:subject> and no activity actors for user feed"

This reverts commit c25fc8a4b5.
This commit is contained in:
Evan Prodromou 2010-03-02 03:40:43 -05:00
parent 40ac724797
commit e2578cfad6
3 changed files with 6 additions and 29 deletions

View File

@ -1090,7 +1090,7 @@ class Notice extends Memcached_DataObject
return $groups;
}
function asAtomEntry($namespace=false, $source=false, $author=true)
function asAtomEntry($namespace=false, $source=false)
{
$profile = $this->getProfile();
@ -1135,10 +1135,8 @@ class Notice extends Memcached_DataObject
$xs->element('title', null, $this->content);
if ($author) {
$xs->raw($profile->asAtomAuthor());
$xs->raw($profile->asActivityActor());
}
$xs->element('link', array('rel' => 'alternate',
'type' => 'text/html',

View File

@ -107,19 +107,9 @@ class AtomNoticeFeed extends Atom10Feed
*/
function addEntryFromNotice($notice)
{
$source = $this->showSource();
$author = $this->showAuthor();
$this->addEntryRaw($notice->asAtomEntry(false, $source, $author));
$this->addEntryRaw($notice->asAtomEntry());
}
function showSource()
{
return true;
}
function showAuthor()
{
return true;
}
}

View File

@ -61,7 +61,6 @@ class AtomUserNoticeFeed extends AtomNoticeFeed
if (!empty($user)) {
$profile = $user->getProfile();
$this->addAuthor($profile->nickname, $user->uri);
$this->setActivitySubject($profile->asActivityNoun('subject'));
}
}
@ -69,14 +68,4 @@ class AtomUserNoticeFeed extends AtomNoticeFeed
{
return $this->user;
}
function showSource()
{
return false;
}
function showAuthor()
{
return false;
}
}