Issue 14250: fix lost quoted posts

This commit is contained in:
Michael 2024-06-23 08:30:41 +00:00
parent de19bf43d9
commit 48ff4f4167
2 changed files with 4 additions and 1 deletions

View file

@ -1032,7 +1032,7 @@ class Item
}
$this->emailer->send(new ItemCCEMail(
$this->app,
$this->userSession,
$this->l10n,
$this->baseURL,
$post,

View file

@ -873,6 +873,9 @@ class Processor
} elseif ($uri_id = ItemURI::getIdByURI($activity['quote-url'], false)) {
Logger::info('Quote was not fetched but the uri-id existed', ['guid' => $item['guid'], 'uri-id' => $item['uri-id'], 'quote' => $activity['quote-url'], 'uri-id' => $uri_id]);
$item['quote-uri-id'] = $uri_id;
} elseif (Queue::exists($activity['quote-url'], 'as:Create')) {
Logger::info('Quote is queued but not processed yet', ['guid' => $item['guid'], 'uri-id' => $item['uri-id'], 'quote' => $activity['quote-url'], 'uri-id' => $uri_id]);
$item['quote-uri-id'] = ItemURI::getIdByURI($activity['quote-url']);
} else {
Logger::info('Quote was not fetched', ['guid' => $item['guid'], 'uri-id' => $item['uri-id'], 'quote' => $activity['quote-url']]);
}