diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-04-30 14:33:35 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-04-30 14:33:35 +0200 |
commit | d872a0ca86c2ec50f5be75cf6ee53dd7101fc12c (patch) | |
tree | 9fa9d1a9813966008ba8ac48540383da1fe94803 /include/connections.php | |
parent | feb5d3af89cc8709f2774e0dc867f7c849cc80f7 (diff) | |
download | volse-hubzilla-d872a0ca86c2ec50f5be75cf6ee53dd7101fc12c.tar.gz volse-hubzilla-d872a0ca86c2ec50f5be75cf6ee53dd7101fc12c.tar.bz2 volse-hubzilla-d872a0ca86c2ec50f5be75cf6ee53dd7101fc12c.zip |
activitypub xchans do not have an xchan_addr. use xchan_url for the follow button if we do not find an xchan_addr
Diffstat (limited to 'include/connections.php')
-rw-r--r-- | include/connections.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/connections.php b/include/connections.php index e5bf07d96..32baa94bd 100644 --- a/include/connections.php +++ b/include/connections.php @@ -127,7 +127,7 @@ function vcard_from_xchan($xchan, $observer = null, $mode = '') { return replace_macros(get_markup_template('xchan_vcard.tpl'),array( '$name' => $xchan['xchan_name'], '$photo' => ((is_array(App::$profile) && array_key_exists('photo',App::$profile)) ? App::$profile['photo'] : $xchan['xchan_photo_l']), - '$follow' => $xchan['xchan_addr'], + '$follow' => (($xchan['xchan_addr']) ? $xchan['xchan_addr'] : $xchan['xchan_url']), '$link' => zid($xchan['xchan_url']), '$connect' => $connect, '$newwin' => (($mode === 'chanview') ? t('New window') : ''), |