* @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); }
/**
* Stream of notices by a profile
class RawProfileNoticeStream extends NoticeStream
{
protected $profile;
+ protected $selectVerbs = array(); // select all verbs
function __construct($profile)
{
Notice::addWhereSinceId($notice, $since_id);
Notice::addWhereMaxId($notice, $max_id);
+ self::filterVerbs($notice, $this->selectVerbs);
+
$notice->orderBy('created DESC, id DESC');
if (!is_null($offset)) {