diff --git a/include/api.php b/include/api.php index 17fb57ad1..9edd79742 100644 --- a/include/api.php +++ b/include/api.php @@ -2041,6 +2041,7 @@ function api_statuses_repeat($type) Logger::log('API: api_statuses_repeat: '.$id); $fields = ['uri-id', 'network', 'body', 'title', 'author-name', 'author-link', 'author-avatar', 'guid', 'created', 'plink']; + $fields = []; $item = Post::selectFirst($fields, ['id' => $id, 'private' => [Item::PUBLIC, Item::UNLISTED]]); if (DBA::isResult($item) && !empty($item['body'])) { diff --git a/tests/datasets/config/A.config.php b/tests/datasets/config/A.config.php index 57d114de7..081f367c2 100644 --- a/tests/datasets/config/A.config.php +++ b/tests/datasets/config/A.config.php @@ -12,7 +12,7 @@ return [ 'password' => 'testpw', 'database' => 'testdb', 'charset' => 'utf8mb4', - 'pdo_emulate_prepares' => true, + 'pdo_emulate_prepares' => false, ], 'config' => [ diff --git a/tests/datasets/config/B.config.php b/tests/datasets/config/B.config.php index 76bcb6e76..1a0697541 100644 --- a/tests/datasets/config/B.config.php +++ b/tests/datasets/config/B.config.php @@ -12,7 +12,7 @@ return [ 'password' => 'testpw', 'database' => 'testdb', 'charset' => 'utf8mb4', - 'pdo_emulate_prepares' => true, + 'pdo_emulate_prepares' => false, ], 'config' => [ diff --git a/tests/src/Console/AutomaticInstallationConsoleTest.php b/tests/src/Console/AutomaticInstallationConsoleTest.php index f00a9e537..fdf887fe6 100644 --- a/tests/src/Console/AutomaticInstallationConsoleTest.php +++ b/tests/src/Console/AutomaticInstallationConsoleTest.php @@ -447,7 +447,7 @@ return [ 'password' => '{$conf('database', 'password')}', 'database' => '{$conf('database', 'database')}', 'charset' => 'utf8mb4', - 'pdo_emulate_prepares' => true, + 'pdo_emulate_prepares' => false, ], // ****************************************************************