From 2d88b3fc4ad2c2ad7621a2d5056b36e60cdd6791 Mon Sep 17 00:00:00 2001 From: Django Doucet Date: Tue, 6 Feb 2024 11:13:56 -0700 Subject: [PATCH] ActivityPub: hide enpoints for now --- Idno/Core/Idno.php | 2 +- templates/activitypub/shell.tpl.php | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Idno/Core/Idno.php b/Idno/Core/Idno.php index 4bc3c78e4..f3dcd22b4 100644 --- a/Idno/Core/Idno.php +++ b/Idno/Core/Idno.php @@ -280,7 +280,7 @@ function registerPages() $this->routes()->addRoute('/service/web/unfurl/remove/:id/?', '\Idno\Pages\Service\Web\RemovePreview'); $this->routes()->addRoute('/service/system/log/?', '\Idno\Pages\Service\System\Log'); $this->routes()->addRoute('/service/geo/geocoder/?', '\Idno\Pages\Service\Geo\Geocoder'); - $this->routes()->addRoute('/inbox/?', '\Idno\Pages\Service\ActivityPub\SharedInbox'); + // $this->routes()->addRoute('/inbox/?', '\Idno\Pages\Service\ActivityPub\SharedInbox'); // These must be loaded last $this->plugins = new Plugins(); diff --git a/templates/activitypub/shell.tpl.php b/templates/activitypub/shell.tpl.php index f8e5fd4e7..2d3b78c29 100644 --- a/templates/activitypub/shell.tpl.php +++ b/templates/activitypub/shell.tpl.php @@ -20,11 +20,10 @@ if ( 'person' === $vars['user']?->getActivityStreamsObjectType()) { - $person = Type::create('Person', [ + $person = Type::create('Person', [ '@context' => [ 'https://www.w3.org/ns/activitystreams', 'https://w3id.org/security/v1', - // 'https://purl.archive.org/socialweb/webfinger', //FEP-4adb isn't yet supported by landrok/activitypub ], 'id' => $vars['user']->getActorID(), 'url' => ($vars['user']->getAuthorURL()), @@ -33,8 +32,7 @@ 'summary' => $vars['user']->getDescription(), 'icon' => $vars['user']->getIconObject(), 'publicKey' => $vars['user']->getPublicKey(), - 'endpoints' => $vars['user']->getEndpoints(), - // 'webfinger' => $vars['user']->getWebfinger(), //FEP-4adb isn't yet supported by landrok/activitypub + // 'endpoints' => $vars['user']->getEndpoints(), ]); echo $person->toJson(JSON_PRETTY_PRINT); } else {