forked from GNUsocial/gnu-social
flag to leave out author information in activity output
This commit is contained in:
parent
fac1942dad
commit
0a5aa95746
@ -319,7 +319,7 @@ class Activity
|
||||
return null;
|
||||
}
|
||||
|
||||
function asString($namespace=false)
|
||||
function asString($namespace=false, $author=true)
|
||||
{
|
||||
$xs = new XMLStringer(true);
|
||||
|
||||
@ -353,6 +353,7 @@ class Activity
|
||||
|
||||
// XXX: add context
|
||||
|
||||
if ($author) {
|
||||
$xs->elementStart('author');
|
||||
$xs->element('uri', array(), $this->actor->id);
|
||||
if ($this->actor->title) {
|
||||
@ -360,6 +361,7 @@ class Activity
|
||||
}
|
||||
$xs->elementEnd('author');
|
||||
$xs->raw($this->actor->asString('activity:actor'));
|
||||
}
|
||||
|
||||
$xs->element('activity:verb', null, $this->verb);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user