remove unused code

this code was never called because $body is never declared
and hence the if could never be true
This commit is contained in:
Art4 2024-11-04 15:04:06 +00:00
parent 57c188d01d
commit 71add60f59

View file

@ -23,9 +23,8 @@ class ActivityPubConversion extends BaseModule
protected function content(array $request = []): string
{
$results = [];
if (!empty($_REQUEST['source'])) {
try {
$source = json_decode($_REQUEST['source'], true);
@ -89,10 +88,6 @@ class ActivityPubConversion extends BaseModule
throw new \Exception('No trust for activity type "' . $type . '", so we quit now.');
}
if (!empty($body) && empty($object_data['raw'])) {
$object_data['raw'] = $body;
}
// Internal flag for thread completion. See Processor.php
if (!empty($activity['thread-completion'])) {
$object_data['thread-completion'] = $activity['thread-completion'];