X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Favatarbynickname.php;h=9bbdecefac8c9f498cda453dfeb4662cec276d17;hb=6b5fb0ab7d8c2e982052a48270e882e7f7379743;hp=d2d078b61f1590cdf4ba8c6959e63bc28f98f717;hpb=12c475c101c070cbcc4c63f7b1049f6d3282b9ee;p=quix0rs-gnu-social.git diff --git a/actions/avatarbynickname.php b/actions/avatarbynickname.php index d2d078b61f..9bbdecefac 100644 --- a/actions/avatarbynickname.php +++ b/actions/avatarbynickname.php @@ -1,5 +1,16 @@ + * @author Robin Millette + * @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3 + * @link http://laconi.ca/ + * * Laconica - a distributed open-source microblogging tool * Copyright (C) 2008, Controlez-Vous, Inc. * @@ -17,10 +28,29 @@ * along with this program. If not, see . */ -if (!defined('LACONICA')) { exit(1); } +if (!defined('LACONICA')) { + exit(1); +} +/** + * Retrieve user avatar by nickname action class. + * + * @category Action + * @package Laconica + * @author Evan Prodromou + * @author Robin Millette + * @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3 + * @link http://laconi.ca/ + */ class AvatarbynicknameAction extends Action { + /** + * Class handler. + * + * @param array $args query arguments + * + * @return boolean false if nickname or user isn't found + */ function handle($args) { parent::handle($args); @@ -67,4 +97,10 @@ class AvatarbynicknameAction extends Action } common_redirect($url, 302); } + + function isReadOnly() + { + return true; + } } +