X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FDebug%2FActivityPubConversion.php;h=34628ecf283272a86bc8495de99e44a2f47c42ab;hb=1d6f5c33a1a7c538d4e529d22701fd735855da15;hp=87a531d5b4ddbc0308ac4063a76507eb10b195d6;hpb=aa0b485f3dca72c5448076e913fa54d948cd7731;p=friendica.git diff --git a/src/Module/Debug/ActivityPubConversion.php b/src/Module/Debug/ActivityPubConversion.php index 87a531d5b4..34628ecf28 100644 --- a/src/Module/Debug/ActivityPubConversion.php +++ b/src/Module/Debug/ActivityPubConversion.php @@ -1,6 +1,6 @@ getLocalUserId(); $push = false; if (!$source) { @@ -114,12 +109,16 @@ class ActivityPubConversion extends BaseModule $object_data['thread-completion'] = $activity['thread-completion']; } + if (!empty($activity['completion-mode'])) { + $object_data['completion-mode'] = $activity['completion-mode']; + } + $results[] = [ 'title' => DI::l10n()->t('Object data'), 'content' => visible_whitespace(var_export($object_data, true)) ]; - $item = ActivityPub\Processor::createItem($object_data); + $item = ActivityPub\Processor::createItem($object_data, true); $results[] = [ 'title' => DI::l10n()->t('Result Item'), @@ -127,7 +126,7 @@ class ActivityPubConversion extends BaseModule ]; } catch (\Throwable $e) { $results[] = [ - 'title' => DI::l10n()->t('Error'), + 'title' => DI::l10n()->tt('Error', 'Errors', 1), 'content' => $e->getMessage(), ]; } @@ -135,8 +134,10 @@ class ActivityPubConversion extends BaseModule $tpl = Renderer::getMarkupTemplate('debug/activitypubconversion.tpl'); $o = Renderer::replaceMacros($tpl, [ - '$source' => ['source', DI::l10n()->t('Source activity'), $_REQUEST['source'] ?? '', ''], - '$results' => $results + '$title' => DI::l10n()->t('ActivityPub Conversion'), + '$source' => ['source', DI::l10n()->t('Source activity'), $_REQUEST['source'] ?? '', ''], + '$results' => $results, + '$submit' => DI::l10n()->t('Submit'), ]); return $o;