Test the test
This commit is contained in:
parent
1a434fd8d6
commit
6b4245d662
4 changed files with 4 additions and 3 deletions
|
@ -2041,6 +2041,7 @@ function api_statuses_repeat($type)
|
||||||
Logger::log('API: api_statuses_repeat: '.$id);
|
Logger::log('API: api_statuses_repeat: '.$id);
|
||||||
|
|
||||||
$fields = ['uri-id', 'network', 'body', 'title', 'author-name', 'author-link', 'author-avatar', 'guid', 'created', 'plink'];
|
$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]]);
|
$item = Post::selectFirst($fields, ['id' => $id, 'private' => [Item::PUBLIC, Item::UNLISTED]]);
|
||||||
|
|
||||||
if (DBA::isResult($item) && !empty($item['body'])) {
|
if (DBA::isResult($item) && !empty($item['body'])) {
|
||||||
|
|
|
@ -12,7 +12,7 @@ return [
|
||||||
'password' => 'testpw',
|
'password' => 'testpw',
|
||||||
'database' => 'testdb',
|
'database' => 'testdb',
|
||||||
'charset' => 'utf8mb4',
|
'charset' => 'utf8mb4',
|
||||||
'pdo_emulate_prepares' => true,
|
'pdo_emulate_prepares' => false,
|
||||||
],
|
],
|
||||||
|
|
||||||
'config' => [
|
'config' => [
|
||||||
|
|
|
@ -12,7 +12,7 @@ return [
|
||||||
'password' => 'testpw',
|
'password' => 'testpw',
|
||||||
'database' => 'testdb',
|
'database' => 'testdb',
|
||||||
'charset' => 'utf8mb4',
|
'charset' => 'utf8mb4',
|
||||||
'pdo_emulate_prepares' => true,
|
'pdo_emulate_prepares' => false,
|
||||||
],
|
],
|
||||||
|
|
||||||
'config' => [
|
'config' => [
|
||||||
|
|
|
@ -447,7 +447,7 @@ return [
|
||||||
'password' => '{$conf('database', 'password')}',
|
'password' => '{$conf('database', 'password')}',
|
||||||
'database' => '{$conf('database', 'database')}',
|
'database' => '{$conf('database', 'database')}',
|
||||||
'charset' => 'utf8mb4',
|
'charset' => 'utf8mb4',
|
||||||
'pdo_emulate_prepares' => true,
|
'pdo_emulate_prepares' => false,
|
||||||
],
|
],
|
||||||
|
|
||||||
// ****************************************************************
|
// ****************************************************************
|
||||||
|
|
Loading…
Reference in a new issue