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:34:25 +0200 |
commit | 12c9e64463061650c32b49349351203ed62ec651 (patch) | |
tree | 0431d32c381226ed201750ac5c84bc145fefcfb0 /include/connections.php | |
parent | 875597cde1b87709751d7aab98da3aa6a92ab664 (diff) | |
download | volse-hubzilla-12c9e64463061650c32b49349351203ed62ec651.tar.gz volse-hubzilla-12c9e64463061650c32b49349351203ed62ec651.tar.bz2 volse-hubzilla-12c9e64463061650c32b49349351203ed62ec651.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') : ''), |