mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
Issue 10720: Use different path scheme for user avatars
This commit is contained in:
parent
9b19fb9b4d
commit
a91e3f5dbc
12 changed files with 84 additions and 34 deletions
|
@ -22,6 +22,8 @@
|
|||
use Friendica\App;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Util\Proxy;
|
||||
|
||||
function msearch_post(App $a)
|
||||
{
|
||||
|
@ -72,7 +74,7 @@ function msearch_post(App $a)
|
|||
$results[] = [
|
||||
'name' => $search_result['name'],
|
||||
'url' => DI::baseUrl() . '/profile/' . $search_result['nickname'],
|
||||
'photo' => DI::baseUrl() . '/photo/avatar/' . $search_result['uid'] . '.jpg',
|
||||
'photo' => User::getAvatarUrlForId($search_result['uid'], Proxy::SIZE_THUMB),
|
||||
'tags' => str_replace([',', ' '], [' ', ' '], $search_result['pub_keywords'])
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue