Depublish public posts when archiving a contact

このコミットが含まれているのは:
zottel 2012-11-02 23:54:03 +01:00
コミット 2871fd4793
2個のファイルの変更4行の追加0行の削除

ファイルの表示

@ -211,6 +211,9 @@ function contacts_content(&$a) {
intval($contact_id),
intval(local_user())
);
if ($archived) {
q("UPDATE `item` SET `private` = 2 WHERE `contact-id` = %d AND `uid` = %d", intval($contact_id), intval(local_user()));
}
if($r) {
//notice( t('Contact has been ') . (($archived) ? t('archived') : t('unarchived')) . EOL );
info( (($archived) ? t('Contact has been archived') : t('Contact has been unarchived')) . EOL );