Skip to content

Commit

Permalink
ActivityPub: hide enpoints for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Django Doucet committed Feb 6, 2024
1 parent 7243a6f commit 2d88b3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Idno/Core/Idno.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 2 additions & 4 deletions templates/activitypub/shell.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand All @@ -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 {
Expand Down

0 comments on commit 2d88b3f

Please sign in to comment.