diff options
author | zotlabs <mike@macgirvin.com> | 2018-04-08 22:53:04 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-04-08 22:53:04 -0700 |
commit | 6844d7c752a0d8614aa7490287d72a84a95b3a73 (patch) | |
tree | d98a9847fe0e06b349b2d3ae1b88d653891502a8 | |
parent | cda3d23508430f8c2dd07fe9d5731b0ba8f4aa24 (diff) | |
download | volse-hubzilla-6844d7c752a0d8614aa7490287d72a84a95b3a73.tar.gz volse-hubzilla-6844d7c752a0d8614aa7490287d72a84a95b3a73.tar.bz2 volse-hubzilla-6844d7c752a0d8614aa7490287d72a84a95b3a73.zip |
don't provide a connect button for transient identities
-rw-r--r-- | include/connections.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/connections.php b/include/connections.php index 8d1b9e07f..e5bf07d96 100644 --- a/include/connections.php +++ b/include/connections.php @@ -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']; |