issues connecting to local forum
This commit is contained in:
parent
dba38821bc
commit
1029939f56
@ -107,15 +107,10 @@ function deliver_run($argv, $argc) {
|
||||
|
||||
$notify = json_decode($r[0]['outq_notify'],true);
|
||||
|
||||
// Check if this is a conversation request packet. It won't have outq_msg
|
||||
// but will be an encrypted packet - so will need to be handed off to
|
||||
// web delivery rather than processed inline.
|
||||
// Messages without an outq_msg will need to go via the web, even if it's a
|
||||
// local delivery. This includes conversation requests and refresh packets.
|
||||
|
||||
$sendtoweb = false;
|
||||
if(array_key_exists('iv',$notify) && (! $r[0]['outq_msg']))
|
||||
$sendtoweb = true;
|
||||
|
||||
if(($r[0]['outq_posturl'] === z_root() . '/post') && (! $sendtoweb)) {
|
||||
if(($r[0]['outq_posturl'] === z_root() . '/post') && ($r[0]['outq_msg'])) {
|
||||
logger('deliver: local delivery', LOGGER_DEBUG);
|
||||
// local delivery
|
||||
// we should probably batch these and save a few delivery processes
|
||||
@ -166,6 +161,7 @@ function deliver_run($argv, $argc) {
|
||||
}
|
||||
else {
|
||||
logger('deliver: remote zot delivery failed to ' . $r[0]['outq_posturl']);
|
||||
logger('deliver: remote zot delivery fail data: ' . print_r($result,true), LOGGER_DATA);
|
||||
$y = q("update outq set outq_updated = '%s' where outq_hash = '%s'",
|
||||
dbesc(datetime_convert()),
|
||||
dbesc($argv[$x])
|
||||
|
@ -745,8 +745,8 @@ function import_xchan($arr,$ud_flags = UPDATE_FLAGS_UPDATED, $ud_arr = null) {
|
||||
|| ($r[0]['xchan_follow'] != $arr['follow_url'])
|
||||
|| ($r[0]['xchan_connpage'] != $arr['connect_url'])
|
||||
|| ($r[0]['xchan_url'] != $arr['url'])
|
||||
|| $hidden_changed || adult_changed || deleted_changed || $pubforum_changed ) {
|
||||
$r = q("update xchan set xchan_name = '%s', xchan_name_date = '%s', xchan_connurl = '%s', xchan_follow = '%s',
|
||||
|| $hidden_changed || $adult_changed || $deleted_changed || $pubforum_changed ) {
|
||||
$rup = q("update xchan set xchan_name = '%s', xchan_name_date = '%s', xchan_connurl = '%s', xchan_follow = '%s',
|
||||
xchan_connpage = '%s', xchan_hidden = %d, xchan_selfcensored = %d, xchan_deleted = %d, xchan_pubforum = %d,
|
||||
xchan_addr = '%s', xchan_url = '%s' where xchan_hash = '%s'",
|
||||
dbesc(($arr['name']) ? $arr['name'] : '-'),
|
||||
@ -763,8 +763,8 @@ function import_xchan($arr,$ud_flags = UPDATE_FLAGS_UPDATED, $ud_arr = null) {
|
||||
dbesc($xchan_hash)
|
||||
);
|
||||
|
||||
logger('import_xchan: existing: ' . print_r($r[0],true), LOGGER_DATA);
|
||||
logger('import_xchan: new: ' . print_r($arr,true), LOGGER_DATA);
|
||||
logger('import_xchan: update: existing: ' . print_r($r[0],true), LOGGER_DATA);
|
||||
logger('import_xchan: update: new: ' . print_r($arr,true), LOGGER_DATA);
|
||||
$what .= 'xchan ';
|
||||
$changed = true;
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
2015-11-13.1215
|
||||
2015-11-15.1217
|
||||
|
Reference in New Issue
Block a user