diff options
author | Arno Richter <oelna@oelna.de> | 2023-01-13 17:47:09 +0100 |
---|---|---|
committer | Arno Richter <oelna@oelna.de> | 2023-01-13 17:47:09 +0100 |
commit | ff2858b6ea8f586daa95e51ae21315f86cc5ded5 (patch) | |
tree | 4e5ce30ad1d7e1de8404900c9cec9d9bf01dbf6d /index.php | |
parent | 3ebd3dcfe6b564ddfe5dcbc0ff9f2bb1fa92c761 (diff) | |
download | microblog-ff2858b6ea8f586daa95e51ae21315f86cc5ded5.tar.gz microblog-ff2858b6ea8f586daa95e51ae21315f86cc5ded5.tar.bz2 microblog-ff2858b6ea8f586daa95e51ae21315f86cc5ded5.zip |
first draft of activitypub support
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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') { |