From fae79b581223e45a92c5df35306a00eb2ab6a47b Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 11 Jul 2015 00:32:05 +0200 Subject: [PATCH] Forgot to push TargetedRss10Action --- lib/targetedrss10action.php | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 lib/targetedrss10action.php diff --git a/lib/targetedrss10action.php b/lib/targetedrss10action.php new file mode 100644 index 0000000000..c7615bd36a --- /dev/null +++ b/lib/targetedrss10action.php @@ -0,0 +1,46 @@ +. + * + * @category Mail + * @package StatusNet + * @author Evan Prodromou + * @author Earle Martin + * @copyright 2008-9 StatusNet, Inc. + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 + * @link http://status.net/ + */ + +if (!defined('GNUSOCIAL')) { exit(1); } + +class TargetedRss10Action extends Rss10Action +{ + protected $target = null; + + protected function doStreamPreparation() + { + $this->target = User::getByNickname($this->trimmed('nickname'))->getProfile(); + } + + function getImage() + { + return $this->target->avatarUrl(AVATAR_PROFILE_SIZE); + } +} -- 2.39.2