]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialProfileExtensions/actions/bio.php
Properly unlink all old avatars when deleting/uploading a new
[quix0rs-gnu-social.git] / plugins / GNUsocialProfileExtensions / actions / bio.php
index bc9f12cb132ee68250eaeee8aa24c790ce8ec00f..269389e07dff451c2de832f3564745fe4c15f279 100644 (file)
@@ -43,10 +43,9 @@ class BioAction extends Action
         parent::prepare($args);
 
         $args = $this->returnToArgs();
-        $this->profile = Profile::staticGet('nickname', $args[1]['nickname']);
+        $this->profile = Profile::getKV('nickname', $args[1]['nickname']);
         //die(print_r($this->profile));
         gnusocial_profile_merge($this->profile);
-        $this->avatar = $this->profile->getAvatar(96);
 
         return true;