aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Web/Router.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-25 23:14:02 -0700
committerzotlabs <mike@macgirvin.com>2017-09-25 23:14:02 -0700
commit9d7a88b40dff8ea49e7185d71e7bad4139b1d289 (patch)
tree5eabc9cb3aea017d2cec8d4a7641bf0540f26dae /Zotlabs/Web/Router.php
parentbe8061b64b47d96ae67e672bf2835e8cec73d979 (diff)
downloadvolse-hubzilla-9d7a88b40dff8ea49e7185d71e7bad4139b1d289.tar.gz
volse-hubzilla-9d7a88b40dff8ea49e7185d71e7bad4139b1d289.tar.bz2
volse-hubzilla-9d7a88b40dff8ea49e7185d71e7bad4139b1d289.zip
move the Link header initialisation from Router (where it does not really belong) to Webserver, where we do similar module specific initialisations prior to calling Router->Dispatch()
Diffstat (limited to 'Zotlabs/Web/Router.php')
-rw-r--r--Zotlabs/Web/Router.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/Zotlabs/Web/Router.php b/Zotlabs/Web/Router.php
index b0193652b..9486130cb 100644
--- a/Zotlabs/Web/Router.php
+++ b/Zotlabs/Web/Router.php
@@ -178,24 +178,6 @@ class Router {
*/
if(\App::$module_loaded) {
- if (( \App::$module === 'channel' ) && argc() > 1) {
- \App::$channel_links = [
- [
- 'rel' => 'lrdd',
- 'type' => 'application/xrd+xml',
- 'url' => z_root() . '/xrd?f=&uri=acct%3A' . argv(1) . '%40' . \App::get_hostname()
- ],
- [
- 'rel' => 'jrd',
- 'type' => 'application/jrd+json',
- 'url' => z_root() . '/.well-known/webfinger?f=&resource=acct%3A' . argv(1) . '%40' . \App::get_hostname()
- ],
- ];
- $x = [ 'channel_address' => argv(1), 'channel_links' => \App::$channel_links ];
- call_hooks('channel_links', $x );
- \App::$channel_links = $x['channel_links'];
- header('Link: ' . \App::get_channel_links());
- }
\App::$page['page_title'] = \App::$module;
$placeholder = '';