]> git.mxchange.org Git - friendica.git/blobdiff - mod/msearch.php
Some more "q" calls and deprecated logging replaced
[friendica.git] / mod / msearch.php
index b51757cf7f44f7b46003d5645412362442a6460c..1e858f1db473504d7ba0ba86f26a40dad46fbe03 100644 (file)
@@ -74,7 +74,7 @@ function msearch_post(App $a)
                $results[] = [
                        'name'  => $search_result['name'],
                        'url'   => DI::baseUrl() . '/profile/' . $search_result['nickname'],
-                       'photo' => User::getAvatarUrlForId($search_result['uid'], Proxy::SIZE_THUMB),
+                       'photo' => User::getAvatarUrl($search_result, Proxy::SIZE_THUMB),
                        'tags'  => str_replace([',', '  '], [' ', ' '], $search_result['pub_keywords'])
                ];
        }