Continued:

- added spaces and curly braces
- added more TODOs as there really more to be done

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-07-20 20:04:32 +02:00
parent 35ada99954
commit 25fd270959
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78

View File

@ -81,7 +81,7 @@ class DFRN
$root->appendChild($entry);
}
return(trim($doc->saveXML()));
return trim($doc->saveXML());
}
/**
@ -221,11 +221,9 @@ class DFRN
//$sql_extra .= file_tag_file_query('item',$category,'category');
}
if ($public_feed) {
if (! $converse) {
if ($public_feed && ! $converse) {
$sql_extra .= " AND `contact`.`self` = 1 ";
}
}
$check_date = DateTimeFormat::utc($last_update);
@ -425,7 +423,7 @@ class DFRN
$root->appendChild($mail);
return(trim($doc->saveXML()));
return trim($doc->saveXML());
}
/**
@ -454,7 +452,7 @@ class DFRN
$root->appendChild($suggest);
return(trim($doc->saveXML()));
return trim($doc->saveXML());
}
/**
@ -513,7 +511,7 @@ class DFRN
$root->appendChild($relocate);
return(trim($doc->saveXML()));
return trim($doc->saveXML());
}
/**
@ -1066,6 +1064,7 @@ class DFRN
$tags = Item::getFeedTags($item);
/// @TODO Combine this with similar below if() block?
if (count($tags)) {
foreach ($tags as $t) {
if (($type != 'html') || ($t[0] != "@")) {
@ -1595,6 +1594,7 @@ class DFRN
$avatarlist[$width] = $href;
}
}
if (count($avatarlist) > 0) {
krsort($avatarlist);
$author["avatar"] = current($avatarlist);