]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/ForumManager.php
Using a constant value for the default avatar
[friendica.git] / src / Content / ForumManager.php
index 7d3cb89a714ac477746835a90f3be954ae13d0b7..980e82522c38f154cc5ac424d8b73666026005f3 100644 (file)
@@ -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) {
@@ -126,12 +125,12 @@ class ForumManager
                                $selected = (($cid == $contact['id']) ? ' forum-selected' : '');
 
                                $entry = [
-                                       'url' => 'network?cid=' . $contact['id'],
+                                       'url' => 'network?contactid=' . $contact['id'],
                                        'external_url' => Contact::magicLink($contact['url']),
                                        '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;