aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-12 19:00:54 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-12 19:00:54 -0700
commit018e7022817fd73e904021ecf46f2c5839da9a62 (patch)
tree0bc817910756931bcaa0b773d30d31ee3c8fa6ed /mod
parent5386686a1e0e60623d6421cbd85a93814c74fb58 (diff)
parent1e0e812440b8b87c39a88692e39eb0baca736b6e (diff)
downloadvolse-hubzilla-018e7022817fd73e904021ecf46f2c5839da9a62.tar.gz
volse-hubzilla-018e7022817fd73e904021ecf46f2c5839da9a62.tar.bz2
volse-hubzilla-018e7022817fd73e904021ecf46f2c5839da9a62.zip
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Conflicts: mod/mitem.php view/nl/strings.php
Diffstat (limited to 'mod')
-rw-r--r--mod/probe.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/probe.php b/mod/probe.php
index 8e0b60dcc..62a2227b0 100644
--- a/mod/probe.php
+++ b/mod/probe.php
@@ -15,6 +15,7 @@ function probe_content(&$a) {
if(x($_GET,'addr')) {
$channel = $a->get_channel();
$addr = trim($_GET['addr']);
+ $do_import = ((intval($_GET['import']) && is_site_admin()) ? true : false);
$res = zot_finger($addr,$channel,false);
$o .= '<pre>';
if($res['success'])
@@ -29,6 +30,8 @@ function probe_content(&$a) {
$o .= sprintf( t('Fetching URL returns error: %1$s'),$res['error'] . "\r\n\r\n");
}
+ if($do_import && $j)
+ $x = import_xchan($j);
if($j && $j['permissions'] && $j['permissions']['iv'])
$j['permissions'] = json_decode(crypto_unencapsulate($j['permissions'],$channel['channel_prvkey']),true);
$o .= str_replace("\n",'<br />',print_r($j,true));