diff options
author | redmatrix <redmatrix@redmatrix.me> | 2016-01-04 23:27:06 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2016-01-04 23:27:06 -0800 |
commit | 26139ee06fc47a99c24c3d63096ccba3cb943aeb (patch) | |
tree | 59440edd80e47dfbb29bf9df719e6b2abdfc0133 /mod | |
parent | bd394ba6dc927f9707b726ec01977759ba82ddc3 (diff) | |
download | volse-hubzilla-26139ee06fc47a99c24c3d63096ccba3cb943aeb.tar.gz volse-hubzilla-26139ee06fc47a99c24c3d63096ccba3cb943aeb.tar.bz2 volse-hubzilla-26139ee06fc47a99c24c3d63096ccba3cb943aeb.zip |
make 'refresh permissions' do something useful for non-zot connections
Diffstat (limited to 'mod')
-rw-r--r-- | mod/connedit.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mod/connedit.php b/mod/connedit.php index 9c46fa999..77b54d262 100644 --- a/mod/connedit.php +++ b/mod/connedit.php @@ -397,7 +397,6 @@ function connedit_content(&$a) { } if($cmd === 'update') { - // pull feed and consume it, which should subscribe to the hub. proc_run('php',"include/poller.php","$contact_id"); goaway($a->get_baseurl(true) . '/connedit/' . $contact_id); @@ -405,8 +404,15 @@ function connedit_content(&$a) { } if($cmd === 'refresh') { - if(! zot_refresh($orig_record[0],get_app()->get_channel())) - notice( t('Refresh failed - channel is currently unavailable.') ); + if($orig_record[0]['xchan_network'] === 'zot') { + if(! zot_refresh($orig_record[0],get_app()->get_channel())) + notice( t('Refresh failed - channel is currently unavailable.') ); + } + else { + + // if you are on a different network we'll force a refresh of the connection basic info + proc_run('php','include/notifier.php','permission_update',$contact_id); + } goaway($a->get_baseurl(true) . '/connedit/' . $contact_id); } |