X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Ffavoritesrss.php;h=62f06e841b193ddd2cb4f94fbb47a3c6c151050e;hb=c899e4a84ee45b65950980ccb87e52129871d58e;hp=3603c6e43c94dae289a99d13e6b246f55695de4b;hpb=d35b2d3f3c2128b147a6fa897032262c1f632262;p=quix0rs-gnu-social.git diff --git a/actions/favoritesrss.php b/actions/favoritesrss.php index 3603c6e43c..62f06e841b 100644 --- a/actions/favoritesrss.php +++ b/actions/favoritesrss.php @@ -7,8 +7,8 @@ * * @category Action * @package StatusNet - * @author Evan Prodromou - * @author Robin Millette + * @author Evan Prodromou + * @author Robin Millette * @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3 * @link http://status.net/ * @@ -29,7 +29,7 @@ * along with this program. If not, see . */ -if (!defined('LACONICA')) { +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } @@ -42,19 +42,19 @@ require_once INSTALLDIR.'/lib/rssaction.php'; * * @category Action * @package StatusNet - * @author Evan Prodromou - * @author Robin Millette - * @author Zach Copley + * @author Evan Prodromou + * @author Robin Millette + * @author Zach Copley * @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3 * @link http://status.net/ */ class FavoritesrssAction extends Rss10Action { - + /** The user whose favorites to display */ - + var $user = null; - + /** * Find the user to display by supplied nickname * @@ -66,7 +66,7 @@ class FavoritesrssAction extends Rss10Action function prepare($args) { parent::prepare($args); - + $nickname = $this->trimmed('nickname'); $this->user = User::staticGet('nickname', $nickname); @@ -74,10 +74,11 @@ class FavoritesrssAction extends Rss10Action $this->clientError(_('No such user.')); return false; } else { + $this->notices = $this->getNotices($this->limit); return true; } } - + /** * Get notices *