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;
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`",
$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;
}
}
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 '';
{
$o = '';
- if (!Feature::isEnabled($uid, 'archives')) {
- return $o;
- }
-
$visible_years = DI::pConfig()->get($uid, 'system', 'archive_visible_years', 5);
/* arrange the list in years */