]> git.mxchange.org Git - friendica.git/commitdiff
Fix: Prevent an endless loop when fetching quoted content
authorMichael <heluecht@pirati.ca>
Fri, 19 May 2023 17:28:29 +0000 (17:28 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 19 May 2023 17:28:29 +0000 (17:28 +0000)
src/Factory/Api/Mastodon/Status.php

index 3973690c006ec0db1f145feb00e4877d4e615bba..b53d846fcda380cb4c42a445f8ef287a9cdf778d 100644 (file)
@@ -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) {