aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorArno Richter <oelna@oelna.de>2023-01-13 17:47:09 +0100
committerArno Richter <oelna@oelna.de>2023-01-13 17:47:09 +0100
commitff2858b6ea8f586daa95e51ae21315f86cc5ded5 (patch)
tree4e5ce30ad1d7e1de8404900c9cec9d9bf01dbf6d /index.php
parent3ebd3dcfe6b564ddfe5dcbc0ff9f2bb1fa92c761 (diff)
downloadmicroblog-ff2858b6ea8f586daa95e51ae21315f86cc5ded5.tar.gz
microblog-ff2858b6ea8f586daa95e51ae21315f86cc5ded5.tar.bz2
microblog-ff2858b6ea8f586daa95e51ae21315f86cc5ded5.zip
first draft of activitypub support
Diffstat (limited to 'index.php')
-rw-r--r--index.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/index.php b/index.php
index e82cf27..9429f19 100644
--- a/index.php
+++ b/index.php
@@ -38,6 +38,17 @@
case 'xmlrpc':
require_once(ROOT.DS.'lib'.DS.'xmlrpc.php');
break;
+ case '.well-known':
+ if(!empty(path(1)) && path(1) == 'webfinger') {
+ require_once(ROOT.DS.'lib'.DS.'activitypub-webfinger.php');
+ } else {
+ http_response_code(404);
+ die();
+ }
+ break;
+ case 'actor':
+ require_once(ROOT.DS.'lib'.DS.'activitypub-actor.php');
+ break;
default:
// redirect everything else to the homepage
if(!empty(path(0)) && path(0) != 'page') {