make 'refresh permissions' do something useful for non-zot connections
This commit is contained in:
parent
bd394ba6dc
commit
26139ee06f
@ -397,7 +397,6 @@ function connedit_content(&$a) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($cmd === 'update') {
|
if($cmd === 'update') {
|
||||||
|
|
||||||
// pull feed and consume it, which should subscribe to the hub.
|
// pull feed and consume it, which should subscribe to the hub.
|
||||||
proc_run('php',"include/poller.php","$contact_id");
|
proc_run('php',"include/poller.php","$contact_id");
|
||||||
goaway($a->get_baseurl(true) . '/connedit/' . $contact_id);
|
goaway($a->get_baseurl(true) . '/connedit/' . $contact_id);
|
||||||
@ -405,8 +404,15 @@ function connedit_content(&$a) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($cmd === 'refresh') {
|
if($cmd === 'refresh') {
|
||||||
|
if($orig_record[0]['xchan_network'] === 'zot') {
|
||||||
if(! zot_refresh($orig_record[0],get_app()->get_channel()))
|
if(! zot_refresh($orig_record[0],get_app()->get_channel()))
|
||||||
notice( t('Refresh failed - channel is currently unavailable.') );
|
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);
|
goaway($a->get_baseurl(true) . '/connedit/' . $contact_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user