mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-26 21:40:16 +00:00
Merge pull request 'Bluesky: Fixes "E_WARNING: Undefined property: stdClass::$post"' (#1557) from heluecht/friendica-addons:warning into 2024.09-rc
Reviewed-on: https://git.friendi.ca/friendica/friendica-addons/pulls/1557
This commit is contained in:
commit
10bd219bd1
1 changed files with 1 additions and 1 deletions
|
@ -1617,7 +1617,7 @@ function bluesky_fetch_parents(stdClass $parent, int $uid, array $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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue