Check if webfinger is enabled

remotes/origin/stable45
Lukas Reschke 13 years ago committed by Jörn Friedrich Dreyer
parent ffb55d5a17
commit 78e8cbd52c
  1. 4
      apps/user_webfinger/host-meta.php
  2. 6
      apps/user_webfinger/webfinger.php

@ -1,4 +1,8 @@
<?php
if (!OCP\App::isEnabled("user_webfinger")) {
return;
}
$hostMetaHeader = array(
'Access-Control-Allow-Origin' => '*',
'Content-Type' => 'application/xrd+json'

@ -1,4 +1,8 @@
<?php
if (!OCP\App::isEnabled("user_webfinger")) {
return;
}
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/xrd+json");
@ -15,7 +19,7 @@ header("Content-Type: application/xrd+json");
* href="<?php echo WF_BASEURL; ?>/apps/myApp/profile.php?user=<?php echo WF_USER; ?>">
* </Link>
*
'* but can also use complex database queries to generate the webfinger result
* but can also use complex database queries to generate the webfinger result
**/
// calculate the documentroot
// modified version of the one in lib/base.php that takes the .well-known symlink into account

Loading…
Cancel
Save