Merge pull request #10805 from MrPetovan/task/10725-user-avatar

Switch uid with nickname in user picture URLs
This commit is contained in:
Michael Vogel 2021-10-03 01:10:55 +02:00 committed by GitHub
commit 10038bb578
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 106 additions and 116 deletions

View 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'])
];
}