convert the abook fields
This commit is contained in:
@@ -175,11 +175,10 @@ function channel_content(&$a, $update = 0, $load = false) {
|
||||
left join abook on ( item.owner_xchan = abook.abook_xchan $abook_uids )
|
||||
WHERE uid = %d $item_normal
|
||||
AND item_wall = 1 AND item_unseen = 1
|
||||
AND ((abook.abook_flags & %d) = 0 or abook.abook_flags is null)
|
||||
AND (abook.blocked = 0 or abook.abook_flags is null)
|
||||
$sql_extra
|
||||
ORDER BY created DESC",
|
||||
intval($a->profile['profile_uid']),
|
||||
intval(ABOOK_FLAG_BLOCKED)
|
||||
intval($a->profile['profile_uid'])
|
||||
);
|
||||
$_SESSION['loadtime'] = datetime_convert();
|
||||
}
|
||||
@@ -221,11 +220,10 @@ function channel_content(&$a, $update = 0, $load = false) {
|
||||
left join abook on item.author_xchan = abook.abook_xchan
|
||||
WHERE uid = %d $item_normal
|
||||
AND item_wall = 1 and item_thread_top = 1
|
||||
AND ((abook.abook_flags & %d) = 0 or abook.abook_flags is null)
|
||||
AND (abook_blocked = 0 or abook.abook_flags is null)
|
||||
$sql_extra $sql_extra2
|
||||
ORDER BY created DESC $pager_sql ",
|
||||
intval($a->profile['profile_uid']),
|
||||
intval(ABOOK_FLAG_BLOCKED)
|
||||
intval($a->profile['profile_uid'])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user