Only set selectVerbs if it's not set in class var
This commit is contained in:
parent
be1759f112
commit
45446f17ad
@ -46,13 +46,17 @@ if (!defined('STATUSNET')) {
|
|||||||
*/
|
*/
|
||||||
abstract class NoticeStream
|
abstract class NoticeStream
|
||||||
{
|
{
|
||||||
protected $selectVerbs = array();
|
protected $selectVerbs = null; // must be set to array
|
||||||
protected $unselectVerbs = array();
|
protected $unselectVerbs = null; // must be set to array
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->selectVerbs = array(ActivityVerb::POST, ActivityUtils::resolveUri(ActivityVerb::POST, true));
|
if ($this->selectVerbs === null) {
|
||||||
$this->unselectVerbs = array(ActivityVerb::DELETE);
|
$this->selectVerbs = array(ActivityVerb::POST, ActivityUtils::resolveUri(ActivityVerb::POST, true));
|
||||||
|
}
|
||||||
|
if ($this->unselectVerbs === null) {
|
||||||
|
$this->unselectVerbs = array(ActivityVerb::DELETE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract function getNoticeIds($offset, $limit, $since_id, $max_id);
|
abstract function getNoticeIds($offset, $limit, $since_id, $max_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user