]> git.mxchange.org Git - friendica.git/commitdiff
Access a contact directly from the contact-manager-page
authorFlxAlbroscheit <felix@artplantation.de>
Fri, 20 Mar 2015 14:10:55 +0000 (15:10 +0100)
committerFlxAlbroscheit <felix@artplantation.de>
Fri, 20 Mar 2015 14:10:55 +0000 (15:10 +0100)
Improved my former commit (see: https://github.com/friendica/friendica/pull/1428)

mod/contacts.php

index 570672d4ea97176435791b1a11325f613450bf2c..95b1944dc871f697f159409f98b77bd782f8bc49 100644 (file)
@@ -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 = '';
        }