From 73ca1096ecc9d8b26cc0f768e81477b7b3e6fe0d Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 17 Jan 2021 21:57:50 +0000 Subject: [PATCH] Fix the test data --- include/api.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/api.php b/include/api.php index 9edd797420..4aa4b21e29 100644 --- a/include/api.php +++ b/include/api.php @@ -2041,7 +2041,6 @@ 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'])) { @@ -2076,7 +2075,7 @@ function api_statuses_repeat($type) $item_id = item_post($a); } } else { - throw new ForbiddenException(print_r($item, true)); + throw new ForbiddenException(); } // output the post that we just posted.