X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FDebug%2FActivityPubConversion.php;h=34628ecf283272a86bc8495de99e44a2f47c42ab;hb=1d6f5c33a1a7c538d4e529d22701fd735855da15;hp=854f557d0c791d5584a3b1ac1b0d81b70473eda8;hpb=38a5358bfa646ae13a4a1a385741890fa88d9b7f;p=friendica.git diff --git a/src/Module/Debug/ActivityPubConversion.php b/src/Module/Debug/ActivityPubConversion.php index 854f557d0c..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(), ]; }