]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/jsonsearchresultslist.php
Properly unlink all old avatars when deleting/uploading a new
[quix0rs-gnu-social.git] / lib / jsonsearchresultslist.php
index 7ae2b9953c0e1d63c78948d2ae101dbf5ad7cac6..48540a4d587a56f76c8361ee7107efe147a9d74b 100644 (file)
@@ -243,10 +243,7 @@ class ResultItem
         
         $this->source = $this->getSourceLink($this->notice->source);
 
-        $avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE);
-
-        $this->profile_image_url = ($avatar) ?
-            $avatar->displayUrl() : Avatar::defaultImage(AVATAR_STREAM_SIZE);
+        $this->profile_image_url = $this->profile->avatarUrl(AVATAR_STREAM_SIZE);
 
         $this->created_at = common_date_rfc2822($this->notice->created);
     }