The global contact for server users is now stored directly

This commit is contained in:
Michael Vogel 2016-05-05 12:02:51 +02:00
parent 90155da59a
commit 3df235e5bd
4 changed files with 22 additions and 8 deletions

View file

@ -492,12 +492,12 @@ class dfrn {
// Is the profile hidden or shouldn't be published in the net? Then add the "hide" element
$r = q("SELECT `id` FROM `profile` INNER JOIN `user` ON `user`.`uid` = `profile`.`uid`
WHERE `hidewall` OR NOT `net-publish` AND `user`.`uid` = %d",
WHERE (`hidewall` OR NOT `net-publish`) AND `user`.`uid` = %d",
intval($owner['uid']));
if ($r)
xml::add_element($doc, $author, "dfrn:hide", "true");
// The following fields will only be generated if this isn't for a public feed
// The following fields will only be generated if the data isn't meant for a public feed
if ($public)
return $author;