added feedback

This commit is contained in:
Philipp Holzer 2019-05-02 23:32:19 +02:00
parent c5e7abf9c5
commit a5d33444ee
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

View file

@ -11,6 +11,9 @@ use Friendica\Model;
use Friendica\Network\HTTPException; use Friendica\Network\HTTPException;
use Friendica\Util\Proxy as ProxyUtils; use Friendica\Util\Proxy as ProxyUtils;
/**
* This module shows all public friends of the selected contact
*/
class AllFriends extends BaseModule class AllFriends extends BaseModule
{ {
public static function content() public static function content()
@ -68,13 +71,13 @@ class AllFriends extends BaseModule
} else { } else {
$connlnk = $app->getBaseURL() . '/follow/?url=' . $friend['url']; $connlnk = $app->getBaseURL() . '/follow/?url=' . $friend['url'];
$photoMenu = [ $photoMenu = [
'profile' => [L10n::t("View Profile"), Model\Contact::magicLink($friend['url'])], 'profile' => [L10n::t('View Profile'), Model\Contact::magicLinkbyId($friend['id'])],
'follow' => [L10n::t("Connect/Follow"), $connlnk] 'follow' => [L10n::t('Connect/Follow'), $connlnk]
]; ];
} }
$entry = [ $entry = [
'url' => Model\Contact::magicLink($friend['url']), 'url' => Model\Contact::magicLinkbyId($friend['id']),
'itemurl' => defaults($contactDetails, 'addr', $friend['url']), 'itemurl' => defaults($contactDetails, 'addr', $friend['url']),
'name' => $contactDetails['name'], 'name' => $contactDetails['name'],
'thumb' => ProxyUtils::proxifyUrl($contactDetails['thumb'], false, ProxyUtils::SIZE_THUMB), 'thumb' => ProxyUtils::proxifyUrl($contactDetails['thumb'], false, ProxyUtils::SIZE_THUMB),