fix tests
This commit is contained in:
parent
3c84be1691
commit
e52181fd37
1 changed files with 3 additions and 1 deletions
|
@ -15,7 +15,7 @@ class Activity {
|
||||||
private $type = 'Create';
|
private $type = 'Create';
|
||||||
private $actor = '';
|
private $actor = '';
|
||||||
private $to = array( 'https://www.w3.org/ns/activitystreams#Public' );
|
private $to = array( 'https://www.w3.org/ns/activitystreams#Public' );
|
||||||
private $cc = array( 'https://www.w3.org/ns/activitystreams#Public' );
|
private $cc = array();
|
||||||
private $object = null;
|
private $object = null;
|
||||||
|
|
||||||
const TYPE_SIMPLE = 'simple';
|
const TYPE_SIMPLE = 'simple';
|
||||||
|
@ -54,6 +54,8 @@ class Activity {
|
||||||
} else {
|
} else {
|
||||||
array_push( $this->$var, $params[0] );
|
array_push( $this->$var, $params[0] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->$var = array_unique( $this->$var );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue