|
|
@ -273,6 +273,9 @@ class Posts extends BaseController |
|
|
$user_type = $info['privacy'] == 2 ? 1 : 2; |
|
|
$user_type = $info['privacy'] == 2 ? 1 : 2; |
|
|
$privacy_users = []; |
|
|
$privacy_users = []; |
|
|
foreach ($user_ids as $user_id) { |
|
|
foreach ($user_ids as $user_id) { |
|
|
|
|
|
if (!is_numeric($user_id)) { |
|
|
|
|
|
throw new \Exception(lang('system.error')); |
|
|
|
|
|
} |
|
|
$privacy_users[] = [ |
|
|
$privacy_users[] = [ |
|
|
'posts_id' => $posts_id, |
|
|
'posts_id' => $posts_id, |
|
|
'user_id' => $user_id, |
|
|
'user_id' => $user_id, |
|
|
|