From: Mikael Nordfeldth Date: Fri, 10 Jul 2015 22:32:05 +0000 (+0200) Subject: Forgot to push TargetedRss10Action X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fae79b581223e45a92c5df35306a00eb2ab6a47b;p=quix0rs-gnu-social.git Forgot to push TargetedRss10Action --- 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); + } +}