Bluesky: Fixes "E_WARNING: Undefined property: stdClass::$post"

pull/1557/head
Michael 2024-10-19 07:41:24 +00:00
parent feb7722f72
commit 08c17c9dd4
1 changed files with 1 additions and 1 deletions

View File

@ -1617,7 +1617,7 @@ function bluesky_fetch_parents(stdClass $parent, int $uid, array $parents = []):
$parents = bluesky_fetch_parents($parent->parent, $uid, $parents); $parents = bluesky_fetch_parents($parent->parent, $uid, $parents);
} }
if (empty(bluesky_fetch_post(bluesky_get_uri($parent->post), $uid))) { if (!empty($parent->post) && empty(bluesky_fetch_post(bluesky_get_uri($parent->post), $uid))) {
$parents[] = $parent->post; $parents[] = $parent->post;
} }