Merge pull request #13140 from annando/quote-loop
Fix: Prevent an endless loop when fetching quoted content
This commit is contained in:
commit
28185c12fc
2 changed files with 2 additions and 2 deletions
|
@ -335,7 +335,7 @@ class Status extends BaseFactory
|
||||||
$quote_id = $item['quote-uri-id'];
|
$quote_id = $item['quote-uri-id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($quote_id)) {
|
if (!empty($quote_id) && ($quote_id != $item['uri-id'])) {
|
||||||
try {
|
try {
|
||||||
$quote = $this->createFromUriId($quote_id, $uid, false, false, false)->toArray();
|
$quote = $this->createFromUriId($quote_id, $uid, false, false, false)->toArray();
|
||||||
} catch (\Exception $exception) {
|
} catch (\Exception $exception) {
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: 2023.05-rc\n"
|
"Project-Id-Version: 2023.05-rc\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2023-05-19 17:46+0000\n"
|
"POT-Creation-Date: 2023-05-19 19:50+0000\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
|
Loading…
Reference in a new issue