mirror of
https://github.com/friendica/friendica
synced 2025-04-25 08:30:11 +00:00
Added trust / isActivityGone
This commit is contained in:
parent
55b6a89c7c
commit
51cc1f679f
6 changed files with 31 additions and 27 deletions
|
@ -303,7 +303,7 @@ class Processor
|
|||
Logger::notice('Parent not found. Try to refetch it.', ['parent' => $activity['reply-to-id'], 'recursion-depth' => $recursion_depth]);
|
||||
if ($recursion_depth < 10) {
|
||||
$result = self::fetchMissingActivity($activity['reply-to-id'], $activity, '', Receiver::COMPLETION_AUTO);
|
||||
if (empty($result) && self::ActivityIsGone($activity['reply-to-id'])) {
|
||||
if (empty($result) && self::isActivityGone($activity['reply-to-id'])) {
|
||||
// Recursively delete this and all depending entries
|
||||
Queue::deleteById($activity['entry-id']);
|
||||
return [];
|
||||
|
@ -466,7 +466,7 @@ class Processor
|
|||
*
|
||||
* @return boolean
|
||||
*/
|
||||
private static function ActivityIsGone(string $url): bool
|
||||
private static function isActivityGone(string $url): bool
|
||||
{
|
||||
$curlResult = HTTPSignature::fetchRaw($url, 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue