implement 'can_comment_on_post()' which doesn't require a separate DB lookup per item.

This commit is contained in:
friendica
2013-06-16 20:44:29 -07:00
parent 764ee785f5
commit 28cd8594a7
3 changed files with 43 additions and 3 deletions

View File

@@ -1794,7 +1794,7 @@ function ids_to_querystr($arr,$idx = 'id') {
// author_xchan and owner_xchan. If $abook is true also include the abook info.
// This is needed in the API to save extra per item lookups there.
function xchan_query(&$items,$abook = false) {
function xchan_query(&$items,$abook = true) {
$arr = array();
if($items && count($items)) {
foreach($items as $item) {