X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FApi%2FMastodon%2FBookmarks.php;h=615bfc501f5031d4d51209474e268ede80bad9e2;hb=3e8c38946dc83f4905872610684bcf5ed73ee99d;hp=a3d00dcd829eed4248e81ccf1346c921a5c4e3bc;hpb=621b4216d94badbe7a4797c42e704ce63e8df3c4;p=friendica.git diff --git a/src/Module/Api/Mastodon/Bookmarks.php b/src/Module/Api/Mastodon/Bookmarks.php index a3d00dcd82..615bfc501f 100644 --- a/src/Module/Api/Mastodon/Bookmarks.php +++ b/src/Module/Api/Mastodon/Bookmarks.php @@ -1,6 +1,6 @@ createFromUriId($item['uri-id'], $uid); + try { + $statuses[] = DI::mstdnStatus()->createFromUriId($item['uri-id'], $uid, $display_quotes); + } catch (\Throwable $th) { + Logger::info('Post not fetchable', ['uri-id' => $item['uri-id'], 'uid' => $uid, 'error' => $th]); + } } DBA::close($items); if (!empty($request['min_id'])) { - array_reverse($statuses); + $statuses = array_reverse($statuses); } self::setLinkHeader();