don't provide a connect button for transient identities

This commit is contained in:
zotlabs 2018-04-08 22:53:04 -07:00
parent cda3d23508
commit 6844d7c752

View File

@ -110,6 +110,12 @@ function vcard_from_xchan($xchan, $observer = null, $mode = '') {
$connect = t('Connect');
}
// don't provide a connect button for transient or one-way identities
if(in_array($xchan['xchan_network'],['rss','anon','unknown']) || strpos($xchan['xchan_addr'],'guest:') === 0) {
$connect = false;
}
if(array_key_exists('channel_id',$xchan))
App::$profile_uid = $xchan['channel_id'];