don't include archived contacts in public posts, unless specifically requested

This commit is contained in:
friendica
2013-08-15 17:43:19 -07:00
parent d46436dc9c
commit 764e0201ce
2 changed files with 5 additions and 4 deletions

View File

@@ -295,8 +295,8 @@ function contact_remove($channel_id, $abook_id) {
$archive = get_pconfig($channel_id, 'system','archive_removed_contacts');
if($archive) {
q("update abook set abook_flags = abook_flags | %d where abook_id = %d and abook_channel = %d limit 1",
intval(ABOOK_FLAG_ARCHIVE),
q("update abook set abook_flags = ( abook_flags | %d ) where abook_id = %d and abook_channel = %d limit 1",
intval(ABOOK_FLAG_ARCHIVED),
intval($abook_id),
intval($channel_id)
);