From: FlxAlbroscheit Date: Fri, 20 Mar 2015 14:10:55 +0000 (+0100) Subject: Access a contact directly from the contact-manager-page X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1e15cba631074b14df767d74dba9f3f9b4b06d32;p=friendica.git Access a contact directly from the contact-manager-page Improved my former commit (see: https://github.com/friendica/friendica/pull/1428) --- diff --git a/mod/contacts.php b/mod/contacts.php index 570672d4ea..95b1944dc8 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -33,7 +33,7 @@ function contacts_init(&$a) { $vcard_widget = replace_macros(get_markup_template("vcard-widget.tpl"),array( '$name' => $a->data['contact']['name'], '$photo' => $a->data['contact']['photo'], - '$url' => $a->data['contact']['url'] + '$url' => ($a->data['contact']['network'] == 'dfrn') ? $a->get_baseurl()."/redir/".$a->data['contact']['id'] : $a->data['contact']['url'] )); $follow_widget = ''; }