From 7187c493e16abc98a8e1ed53d63a3d93e63db4af Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 3 Dec 2013 17:55:10 -0800 Subject: add hooks to zot-finger and import_xchan --- include/zot.php | 3 +++ mod/zfinger.php | 1 + 2 files changed, 4 insertions(+) diff --git a/include/zot.php b/include/zot.php index 124fe7fd6..e365435e9 100644 --- a/include/zot.php +++ b/include/zot.php @@ -531,6 +531,9 @@ function zot_register_hub($arr) { function import_xchan($arr,$ud_flags = 1) { + + call_hooks('import_xchan', $arr); + $ret = array('success' => false); $dirmode = intval(get_config('system','directory_mode')); diff --git a/mod/zfinger.php b/mod/zfinger.php index ff1bf3a35..0827f3424 100644 --- a/mod/zfinger.php +++ b/mod/zfinger.php @@ -252,6 +252,7 @@ function zfinger_init(&$a) { $ret['site']['location'] = get_config('system','site_location'); } + call_hooks('zot_finger',$ret); json_return_and_die($ret); } -- cgit v1.2.3