Check if webfinger is enabled
This commit is contained in:
parent
2c5ab91c7d
commit
e73292339f
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
if (!OCP\App::isEnabled("user_webfinger")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(class_exists('OC')){
|
||||
$WEBROOT=OC::$WEBROOT;
|
||||
|
|
|
@ -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
|
||||
**/
|
||||
|
||||
$userName = '';
|
||||
|
|
Loading…
Reference in New Issue