return $groups;
}
- function asAtomEntry($namespace=false, $source=false, $author=true)
+ function asAtomEntry($namespace=false, $source=false)
{
$profile = $this->getProfile();
$xs->element('title', null, $this->content);
- if ($author) {
- $xs->raw($profile->asAtomAuthor());
- $xs->raw($profile->asActivityActor());
- }
+ $xs->raw($profile->asAtomAuthor());
+ $xs->raw($profile->asActivityActor());
$xs->element('link', array('rel' => 'alternate',
'type' => 'text/html',
*/
function addEntryFromNotice($notice)
{
- $source = $this->showSource();
- $author = $this->showAuthor();
-
- $this->addEntryRaw($notice->asAtomEntry(false, $source, $author));
- }
-
- function showSource()
- {
- return true;
+ $this->addEntryRaw($notice->asAtomEntry());
}
- function showAuthor()
- {
- return true;
- }
}
+
+
if (!empty($user)) {
$profile = $user->getProfile();
$this->addAuthor($profile->nickname, $user->uri);
- $this->setActivitySubject($profile->asActivityNoun('subject'));
}
}
{
return $this->user;
}
-
- function showSource()
- {
- return false;
- }
-
- function showAuthor()
- {
- return false;
- }
}