]> git.mxchange.org Git - friendica.git/blobdiff - mod/contacts.php
The contact template now displays the address if available
[friendica.git] / mod / contacts.php
index 934472b39ff9c4172db531056b1d8ce551efdbef..017b1d6435fd8456953d3fadcc312312fdc0b6e7 100644 (file)
@@ -867,7 +867,7 @@ function _contact_detail_for_template($rr){
                'name' => htmlentities($rr['name']),
                'username' => htmlentities($rr['name']),
                'sparkle' => $sparkle,
-               'itemurl' => $rr['url'],
+               'itemurl' => (($rr['addr'] != "") ? $rr['addr'] : $rr['url']),
                'url' => $url,
                'network' => network_to_name($rr['network'], $rr['url']),
        );