Commit 7de1aaf8 authored by Zach Copley's avatar Zach Copley

Atom - output nickname for atom:name in atom:author

parent 30eddaf1
......@@ -546,7 +546,10 @@ class ActivityObject
if (!empty($this->title)) {
$name = common_xml_safe_str($this->title);
if ($tag == 'author') {
$xo->element(self::NAME, null, $name);
// XXX: Backward compatibility hack -- atom:name should contain
// full name here, instead of nickname, i.e.: $name. Change
// this in the next version.
$xo->element(self::NAME, null, $this->poco->preferredUsername);
} else {
$xo->element(self::TITLE, null, $name);
}
......
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