From 1e15cba631074b14df767d74dba9f3f9b4b06d32 Mon Sep 17 00:00:00 2001 From: FlxAlbroscheit Date: Fri, 20 Mar 2015 15:10:55 +0100 Subject: [PATCH] Access a contact directly from the contact-manager-page Improved my former commit (see: https://github.com/friendica/friendica/pull/1428) --- mod/contacts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ''; } -- 2.39.5