X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmsearch.php;h=1e858f1db473504d7ba0ba86f26a40dad46fbe03;hb=3972fe62fe8afb3791e9d6526e7665501a577b81;hp=48476da4f06542a00d3c101202233c4e035d7543;hpb=01640a7045e146759bc936dd499ac27738b78940;p=friendica.git diff --git a/mod/msearch.php b/mod/msearch.php index 48476da4f0..1e858f1db4 100644 --- a/mod/msearch.php +++ b/mod/msearch.php @@ -1,6 +1,6 @@ $search_result['name'], 'url' => DI::baseUrl() . '/profile/' . $search_result['nickname'], - 'photo' => DI::baseUrl() . '/photo/avatar/' . $search_result['uid'] . '.jpg', + 'photo' => User::getAvatarUrl($search_result, Proxy::SIZE_THUMB), 'tags' => str_replace([',', ' '], [' ', ' '], $search_result['pub_keywords']) ]; } + DBA::close($search_stmt); + $output = ['total' => $total, 'items_page' => $perpage, 'page' => $page, 'results' => $results]; echo json_encode($output);