Remove test code
This commit is contained in:
parent
4c5e9f206e
commit
54cebf5a88
|
@ -572,9 +572,7 @@ class Receiver
|
|||
|
||||
if (!self::routeActivities($object_data, $type, $push)) {
|
||||
self::storeUnhandledActivity(true, $type, $object_data, $activity, $body, $uid, $trust_source, $push, $signer);
|
||||
//if (!DI::config()->get('debug', 'ap_log_unknown')) {
|
||||
// Queue::remove($object_data);
|
||||
//}
|
||||
Queue::remove($object_data);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -643,7 +641,7 @@ class Receiver
|
|||
$announce_object_data['raw'] = $object_data['raw'];
|
||||
}
|
||||
ActivityPub\Processor::createActivity($announce_object_data, Activity::ANNOUNCE);
|
||||
} else echo "\n***************************\n";
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
@ -829,6 +827,10 @@ class Receiver
|
|||
*/
|
||||
private static function storeUnhandledActivity(bool $unknown, string $type, array $object_data, array $activity, string $body = '', int $uid = null, bool $trust_source = false, bool $push = false, array $signer = [])
|
||||
{
|
||||
if (!DI::config()->get('debug', 'ap_log_unknown')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$file = ($unknown ? 'unknown-' : 'unhandled-') . str_replace(':', '-', $type) . '-';
|
||||
|
||||
if (!empty($object_data['object_type'])) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user