mirror of
https://github.com/friendica/friendica
synced 2025-04-24 09:10:17 +00:00
Show the network icon for the contact
This commit is contained in:
parent
30aad250df
commit
b3b5599d27
3 changed files with 15 additions and 5 deletions
|
@ -21,6 +21,7 @@
|
|||
|
||||
namespace Friendica\Content\Widget;
|
||||
|
||||
use Friendica\Content\ContactSelector;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Protocol;
|
||||
|
@ -49,10 +50,12 @@ class VCard
|
|||
Logger::warning('Incomplete contact', ['contact' => $contact ?? [], 'callstack' => System::callstack(20)]);
|
||||
}
|
||||
|
||||
if (($contact['network'] != '') && ($contact['network'] != Protocol::DFRN)) {
|
||||
$network_link = Strings::formatNetworkName($contact['network'], $contact['url']);
|
||||
if ($contact['network'] != '') {
|
||||
$network_link = Strings::formatNetworkName($contact['network'], $contact['url']);
|
||||
$network_avatar = ContactSelector::networkToIcon($contact['network'], $contact['url']);
|
||||
} else {
|
||||
$network_link = '';
|
||||
$network_link = '';
|
||||
$network_avatar = '';
|
||||
}
|
||||
|
||||
$follow_link = '';
|
||||
|
@ -93,6 +96,7 @@ class VCard
|
|||
'$xmpp' => DI::l10n()->t('XMPP:'),
|
||||
'$location' => DI::l10n()->t('Location:'),
|
||||
'$network_link' => $network_link,
|
||||
'$network_avatar' => $network_avatar,
|
||||
'$network' => DI::l10n()->t('Network:'),
|
||||
'$account_type' => Contact::getAccountType($contact),
|
||||
'$follow' => DI::l10n()->t('Follow'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue