Present http:// alias by default in WebFinger output
because it might help us (and especially StatusNet sites) to recognize profiles that have migrated from HTTP to HTTPS!
This commit is contained in:
@@ -31,6 +31,13 @@ if (!defined('GNUSOCIAL')) { exit(1); }
|
||||
|
||||
class WebFingerPlugin extends Plugin
|
||||
{
|
||||
public $http_alias = true;
|
||||
|
||||
public function initialize()
|
||||
{
|
||||
common_config_set('webfinger', 'http_alias', $this->http_alias);
|
||||
}
|
||||
|
||||
public function onRouterInitialized($m)
|
||||
{
|
||||
$m->connect('.well-known/host-meta', array('action' => 'hostmeta'));
|
||||
|
Reference in New Issue
Block a user