don't provide a connect button for transient identities
This commit is contained in:
parent
cda3d23508
commit
6844d7c752
@ -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'];
|
||||
|
||||
|
Reference in New Issue
Block a user