X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FWidget.php;h=e8e70c0e11cf097fee20a05757e92f4e75674be2;hb=71b6226909aaef47ae4cfa7ba3d880cb0a73e2ef;hp=c3ec88fc914e576345d57d95eea964b6dac79726;hpb=4da90b9378bedbe2b770cc9cf91372631ffeb2b4;p=friendica.git diff --git a/src/Content/Widget.php b/src/Content/Widget.php index c3ec88fc91..e8e70c0e11 100644 --- a/src/Content/Widget.php +++ b/src/Content/Widget.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Content; use Friendica\Core\Addon; @@ -17,7 +34,6 @@ use Friendica\Model\Group; use Friendica\Model\Item; use Friendica\Model\Profile; use Friendica\Util\DateTimeFormat; -use Friendica\Util\Proxy as ProxyUtils; use Friendica\Util\Strings; use Friendica\Util\Temporal; @@ -252,10 +268,6 @@ class Widget return ''; } - if (!Feature::isEnabled(local_user(), 'networks')) { - return ''; - } - $extra_sql = self::unavailableNetworks(); $r = DBA::p("SELECT DISTINCT(`network`) FROM `contact` WHERE `uid` = ? AND NOT `deleted` AND `network` != '' $extra_sql ORDER BY `network`", @@ -419,10 +431,11 @@ class Widget $entries = []; foreach ($r as $rr) { + $contact = Contact::getByURL($rr['url']); $entry = [ 'url' => Contact::magicLink($rr['url']), - 'name' => $rr['name'], - 'photo' => ProxyUtils::proxifyUrl($rr['photo'], false, ProxyUtils::SIZE_THUMB), + 'name' => $contact['name'] ?? $rr['name'], + 'photo' => Contact::getThumb($contact, $rr['photo']), ]; $entries[] = $entry; } @@ -458,7 +471,7 @@ class Widget } if (Feature::isEnabled($uid, 'tagadelic')) { - $owner_id = Contact::getIdForURL($a->profile['url'], 0, true); + $owner_id = Contact::getIdForURL($a->profile['url'], 0, false); if (!$owner_id) { return ''; @@ -480,10 +493,6 @@ class Widget { $o = ''; - if (!Feature::isEnabled($uid, 'archives')) { - return $o; - } - $visible_years = DI::pConfig()->get($uid, 'system', 'archive_visible_years', 5); /* arrange the list in years */