]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/avatarbynickname.php
correctly gc sessions
[quix0rs-gnu-social.git] / actions / avatarbynickname.php
index fec202016ea5e1fc3bf4dc29acf4258904c8fce3..3e615261fefbcd5272ca34433bbf936f607eea9d 100644 (file)
@@ -12,7 +12,7 @@
  * @link     http://laconi.ca/
  *
  * Laconica - a distributed open-source microblogging tool
- * Copyright (C) 2008, Controlez-Vous, Inc.
+ * Copyright (C) 2008, 2009, Control Yourself, Inc.
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as published by
@@ -90,12 +90,17 @@ class AvatarbynicknameAction extends Action
             $url = $avatar->url;
         } else {
             if ($size == 'original') {
-                $url = common_default_avatar(AVATAR_PROFILE_SIZE);
+                $url = Avatar::defaultImage(AVATAR_PROFILE_SIZE);
             } else {
-                $url = common_default_avatar($size+0);
+                $url = Avatar::defaultImage($size+0);
             }
         }
         common_redirect($url, 302);
     }
+
+    function isReadOnly($args)
+    {
+        return true;
+    }
 }