Fix notice "Undefined index: internal-verb"

This commit is contained in:
Michael 2021-01-17 08:15:18 +00:00
parent f5f8ea8715
commit 2c65b81182

View file

@ -85,7 +85,7 @@ class PublicTimeline extends BaseApi
$items = Post::selectForUser(0, ['uri-id', 'uid'], $condition, $params);
$statuses = [];
while ($item = Item::fetch($items)) {
while ($item = Post::fetch($items)) {
$statuses[] = DI::mstdnStatus()->createFromUriId($item['uri-id'], $item['uid']);
}
DBA::close($items);