Depublish public posts when archiving a contact
このコミットが含まれているのは:
コミット
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 );
|
||||
|
|
読み込み中…
Add table
Add a link
新しいイシューから参照