Use NoticeStream::filterVerbs for filtering in noticestreams

This commit is contained in:
Mikael Nordfeldth
2016-02-14 20:46:13 +01:00
parent c23c3a4f53
commit e2a090c9cc
9 changed files with 69 additions and 72 deletions

View File

@@ -28,11 +28,7 @@
* @link http://status.net/
*/
if (!defined('STATUSNET')) {
// This check helps protect against security problems;
// your code file can't be executed directly from the web.
exit(1);
}
if (!defined('GNUSOCIAL')) { exit(1); }
/**
* Notice stream for favorites
@@ -77,14 +73,14 @@ class RawFaveNoticeStream extends NoticeStream
protected $user_id;
protected $own;
protected $selectVerbs = array();
function __construct($user_id, $own)
{
parent::__construct();
$this->user_id = $user_id;
$this->own = $own;
$this->selectVerbs = array();
}
/**