mirror of
https://github.com/friendica/friendica
synced 2025-04-25 17:50:11 +00:00
Some more avatar function replacements
This commit is contained in:
parent
701dbdf7fc
commit
71b6226909
15 changed files with 47 additions and 63 deletions
|
@ -27,7 +27,6 @@ use Friendica\Core\Renderer;
|
|||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Util\Proxy as ProxyUtils;
|
||||
|
||||
/**
|
||||
* This class handles methods related to the forum functionality
|
||||
|
@ -72,7 +71,7 @@ class ForumManager
|
|||
|
||||
$forumlist = [];
|
||||
|
||||
$fields = ['id', 'url', 'name', 'micro', 'thumb'];
|
||||
$fields = ['id', 'url', 'name', 'micro', 'thumb', 'avatar'];
|
||||
$condition = [$condition_str, Protocol::DFRN, Protocol::ACTIVITYPUB, $uid];
|
||||
$contacts = DBA::select('contact', $fields, $condition, $params);
|
||||
if (!$contacts) {
|
||||
|
@ -131,7 +130,7 @@ class ForumManager
|
|||
'name' => $contact['name'],
|
||||
'cid' => $contact['id'],
|
||||
'selected' => $selected,
|
||||
'micro' => DI::baseUrl()->remove(ProxyUtils::proxifyUrl($contact['micro'], false, ProxyUtils::SIZE_MICRO)),
|
||||
'micro' => DI::baseUrl()->remove(Contact::getMicro($contact)),
|
||||
'id' => ++$id,
|
||||
];
|
||||
$entries[] = $entry;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue