X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FWidget.php;h=e8e70c0e11cf097fee20a05757e92f4e75674be2;hb=71b6226909aaef47ae4cfa7ba3d880cb0a73e2ef;hp=fad863fbeb23b13075c93463bc30b8bc5b2a3597;hpb=dd85f48e0de68aa71cb46ff067bd872f0f97ee1e;p=friendica.git diff --git a/src/Content/Widget.php b/src/Content/Widget.php index fad863fbeb..e8e70c0e11 100644 --- a/src/Content/Widget.php +++ b/src/Content/Widget.php @@ -34,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; @@ -432,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; }