Webmention frontend

This commit is contained in:
Stephen Paul Weber
2015-10-22 17:18:20 +00:00
parent 96fb18da3f
commit dbfb698859
2 changed files with 80 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ if (!defined('STATUSNET')) {
}
require_once('Auth/Yadis/Yadis.php');
require_once(__DIR__ . '/lib/util.php');
define('LINKBACKPLUGIN_VERSION', '0.1');
@@ -306,6 +307,12 @@ class LinkbackPlugin extends Plugin
}
}
public function onRouterInitialized(URLMapper $m)
{
$m->connect('main/linkback/webmention', array('action' => 'webmention'));
}
public function version()
{
return LINKBACKPLUGIN_VERSION;