From f47ddf0758f120dfb26f03fb36be5cd897a10f23 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 22 Nov 2013 21:32:06 +0100 Subject: first work on remote fork notifications with linkback (webmention/pingback) --- data/config.default.php | 12 ++++++++---- data/templates/display-sidebar-fork.htm | 24 ++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 6 deletions(-) (limited to 'data') diff --git a/data/config.default.php b/data/config.default.php index 85713cd..45adf92 100644 --- a/data/config.default.php +++ b/data/config.default.php @@ -14,10 +14,14 @@ $GLOBALS['phorkie']['cfg'] = array( 'geshi' => 'MediaWiki/geshi/geshi/geshi.php', 'index' => 'new',//"new" or "list" 'perPage' => 10, - 'webhooks' => array( - /* array of urls that get called when - a paste is created, edited or deleted */ - ) + 'notificator' => array( + /* send out pingback/webmentions when a remote paste is forked */ + 'linkback' => true, + 'webhook' => array( + /* array of urls that get called when + a paste is created, edited or deleted */ + ) + ), ); $GLOBALS['phorkie']['auth'] = array( // 0 = public, no authentication, 1 = protect adds/edits/deletes, diff --git a/data/templates/display-sidebar-fork.htm b/data/templates/display-sidebar-fork.htm index d3793e1..9ed5626 100644 --- a/data/templates/display-sidebar-fork.htm +++ b/data/templates/display-sidebar-fork.htm @@ -1,7 +1,7 @@ {% set conns = repo.getConnectionInfo() %} {% if conns.isFork() %} {% set origin = conns.getOrigin() %} -

Fork of

+

Fork of

{% set webpage = origin.getWebURL() %} {% if webpage %} @@ -9,6 +9,26 @@ {% else %} {{origin.getTitle()}} {% endif %} - (clone URL) +

+{% endif %} +{% if conns.hasForks() %} +

Forks

+ {% endif %} \ No newline at end of file -- cgit v1.2.3