Merge pull request #10805 from MrPetovan/task/10725-user-avatar
Switch uid with nickname in user picture URLs
This commit is contained in:
commit
10038bb578
15 changed files with 106 additions and 116 deletions
|
@ -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'])
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue