From: Michael Date: Fri, 19 May 2023 17:28:29 +0000 (+0000) Subject: Fix: Prevent an endless loop when fetching quoted content X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1523fa22369fd73b5d7d5e50269f871917d7613c;p=friendica.git Fix: Prevent an endless loop when fetching quoted content --- diff --git a/src/Factory/Api/Mastodon/Status.php b/src/Factory/Api/Mastodon/Status.php index 3973690c00..b53d846fcd 100644 --- a/src/Factory/Api/Mastodon/Status.php +++ b/src/Factory/Api/Mastodon/Status.php @@ -335,7 +335,7 @@ class Status extends BaseFactory $quote_id = $item['quote-uri-id']; } - if (!empty($quote_id)) { + if (!empty($quote_id) && ($quote_id != $item['uri-id'])) { try { $quote = $this->createFromUriId($quote_id, $uid, false, false, false)->toArray(); } catch (\Exception $exception) {