From 1523fa22369fd73b5d7d5e50269f871917d7613c Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 19 May 2023 17:28:29 +0000 Subject: [PATCH] Fix: Prevent an endless loop when fetching quoted content --- src/Factory/Api/Mastodon/Status.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5