diff options
Diffstat (limited to 'lib/activitypub-webfinger.php')
-rw-r--r-- | lib/activitypub-webfinger.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/activitypub-webfinger.php b/lib/activitypub-webfinger.php index 2ad44fb..15177cb 100644 --- a/lib/activitypub-webfinger.php +++ b/lib/activitypub-webfinger.php @@ -1,5 +1,7 @@ <?php + if(!$config['activitypub']) exit(); + // todo: handle empty usernames $actor = ltrim($config['microblog_account'], '@'); @@ -18,5 +20,5 @@ ] ]; - header('Content-Type: application/ld+json'); + header('Content-Type: application/jrd+json'); echo(json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); |