From: rabuzarus <> Date: Thu, 26 Nov 2015 16:46:38 +0000 (+0100) Subject: include friendica address in hcard X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=620299dc2571da46c9578f99f743477c7a4b4a4a;p=friendica.git include friendica address in hcard --- diff --git a/include/identity.php b/include/identity.php index 3ab65d9e64..a785ce981d 100644 --- a/include/identity.php +++ b/include/identity.php @@ -62,7 +62,7 @@ if(! function_exists('profile_load')) { if($profile) { $profile_int = intval($profile); - $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `contact`.`avatar-date` AS picdate, `user`.* FROM `profile` + $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `contact`.`avatar-date` AS picdate, `contact`.`addr` AS faddr, `user`.* FROM `profile` INNER JOIN `contact` on `contact`.`uid` = `profile`.`uid` INNER JOIN `user` ON `profile`.`uid` = `user`.`uid` WHERE `user`.`nickname` = '%s' AND `profile`.`id` = %d AND `contact`.`self` = 1 LIMIT 1", dbesc($nickname), @@ -70,7 +70,7 @@ if(! function_exists('profile_load')) { ); } if((!$r) && (!count($r))) { - $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `contact`.`avatar-date` AS picdate, `user`.* FROM `profile` + $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `contact`.`avatar-date` AS picdate, `contact`.`addr` AS faddr, `user`.* FROM `profile` INNER JOIN `contact` ON `contact`.`uid` = `profile`.`uid` INNER JOIN `user` ON `profile`.`uid` = `user`.`uid` WHERE `user`.`nickname` = '%s' AND `profile`.`is-default` = 1 AND `contact`.`self` = 1 LIMIT 1", dbesc($nickname) diff --git a/view/templates/profile_vcard.tpl b/view/templates/profile_vcard.tpl index fe5762973f..05e44432fd 100644 --- a/view/templates/profile_vcard.tpl +++ b/view/templates/profile_vcard.tpl @@ -3,7 +3,7 @@