mirror of
https://github.com/friendica/friendica
synced 2024-11-17 23:03:41 +00:00
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:
parent
57c188d01d
commit
71add60f59
1 changed files with 1 additions and 6 deletions
|
@ -23,9 +23,8 @@ class ActivityPubConversion extends BaseModule
|
||||||
|
|
||||||
protected function content(array $request = []): string
|
protected function content(array $request = []): string
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$results = [];
|
$results = [];
|
||||||
|
|
||||||
if (!empty($_REQUEST['source'])) {
|
if (!empty($_REQUEST['source'])) {
|
||||||
try {
|
try {
|
||||||
$source = json_decode($_REQUEST['source'], true);
|
$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.');
|
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
|
// Internal flag for thread completion. See Processor.php
|
||||||
if (!empty($activity['thread-completion'])) {
|
if (!empty($activity['thread-completion'])) {
|
||||||
$object_data['thread-completion'] = $activity['thread-completion'];
|
$object_data['thread-completion'] = $activity['thread-completion'];
|
||||||
|
|
Loading…
Reference in a new issue