X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fuserrss.php;h=19e610551d4bca2ec9cf65defde29b7e003a76de;hb=b96f30168cf4a6a36e5400fb9b00dec0c323e7d1;hp=a9f3fd5f89e4103d69bb38d0f4f44894fec67ae9;hpb=91cba7a76f97a1669cbe9a2c2fa1b3e653786f26;p=quix0rs-gnu-social.git diff --git a/actions/userrss.php b/actions/userrss.php index a9f3fd5f89..19e610551d 100644 --- a/actions/userrss.php +++ b/actions/userrss.php @@ -1,7 +1,7 @@ . */ -if (!defined('LACONICA')) { exit(1); } +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } require_once(INSTALLDIR.'/lib/rssaction.php'); @@ -25,7 +25,6 @@ require_once(INSTALLDIR.'/lib/rssaction.php'); class UserrssAction extends Rss10Action { - var $user = null; var $tag = null; function prepare($args) @@ -39,6 +38,7 @@ class UserrssAction extends Rss10Action $this->clientError(_('No such user.')); return false; } else { + $this->notices = $this->getNotices($this->limit); return true; } } @@ -64,9 +64,8 @@ class UserrssAction extends Rss10Action function getNotices($limit=0) { - $user = $this->user; - + if (is_null($user)) { return null; }