Apply suggestions from code review

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Michael Vogel 2021-10-03 21:49:55 +02:00 committed by GitHub
parent 1d86d79778
commit e1ac33576a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2056,7 +2056,7 @@ function api_statuses_repeat($type)
$id = intval(DI::args()->getArgv()[4] ?? 0); $id = intval(DI::args()->getArgv()[4] ?? 0);
} }
logger::notice('API: api_statuses_repeat: '.$id); logger::notice('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'];
$item = Post::selectFirst($fields, ['id' => $id, 'private' => [Item::PUBLIC, Item::UNLISTED]]); $item = Post::selectFirst($fields, ['id' => $id, 'private' => [Item::PUBLIC, Item::UNLISTED]]);
@ -2139,7 +2139,7 @@ function api_statuses_destroy($type)
$id = intval(DI::args()->getArgv()[4] ?? 0); $id = intval(DI::args()->getArgv()[4] ?? 0);
} }
logger::notice('API: api_statuses_destroy: '.$id); logger::notice('API: api_statuses_destroy: ' . $id);
$ret = api_statuses_show($type); $ret = api_statuses_show($type);