]> git.mxchange.org Git - friendica-addons.git/commitdiff
Bluesky: Fixes "E_WARNING: Undefined property: stdClass::$post"
authorMichael <heluecht@pirati.ca>
Sat, 19 Oct 2024 07:41:24 +0000 (07:41 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 19 Oct 2024 07:41:24 +0000 (07:41 +0000)
bluesky/bluesky.php

index 73b196124e8e2d3d1c083d5d63fefe45f7415760..95857b0157302a7c6a07c0f6f7778e0f0929c6b3 100644 (file)
@@ -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;
        }