mirror of
https://github.com/friendica/friendica
synced 2025-01-03 20:02:19 +00:00
Merge pull request #14251 from annando/issue-14250
Issue 14250: fix lost quoted posts
This commit is contained in:
commit
2a1c6a255b
2 changed files with 4 additions and 1 deletions
|
@ -1032,7 +1032,7 @@ class Item
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->emailer->send(new ItemCCEMail(
|
$this->emailer->send(new ItemCCEMail(
|
||||||
$this->app,
|
$this->userSession,
|
||||||
$this->l10n,
|
$this->l10n,
|
||||||
$this->baseURL,
|
$this->baseURL,
|
||||||
$post,
|
$post,
|
||||||
|
|
|
@ -873,6 +873,9 @@ class Processor
|
||||||
} elseif ($uri_id = ItemURI::getIdByURI($activity['quote-url'], false)) {
|
} 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]);
|
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;
|
$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 {
|
} else {
|
||||||
Logger::info('Quote was not fetched', ['guid' => $item['guid'], 'uri-id' => $item['uri-id'], 'quote' => $activity['quote-url']]);
|
Logger::info('Quote was not fetched', ['guid' => $item['guid'], 'uri-id' => $item['uri-id'], 'quote' => $activity['quote-url']]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue