mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Check if webfinger is enabled
This commit is contained in:
parent
ffb55d5a17
commit
78e8cbd52c
2 changed files with 9 additions and 1 deletions
|
|
@ -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…
Reference in a new issue