From 4b300f82747d6e0d6643e381ac55f388340cf501 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 19 Oct 2015 14:53:13 +0200 Subject: fix typo in include/notifier.php --- include/notifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/notifier.php') diff --git a/include/notifier.php b/include/notifier.php index b7cea629d..385062f07 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -127,7 +127,7 @@ function notifier_run($argv, $argc){ if($s) { $perm_update = array('sender' => $s[0], 'recipient' => $r[0], 'success' => false, 'deliveries' => ''); - if($cmd == 'permission_create']) + if($cmd == 'permission_create') call_hooks('permissions_create',$perm_update); else call_hooks('permissions_update',$perm_update); -- cgit v1.2.3 From 917d0ced4a1f0890172b90a9551131fa43bea78b Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 25 Oct 2015 16:54:18 -0700 Subject: new feature: delayed posting --- include/notifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/notifier.php') diff --git a/include/notifier.php b/include/notifier.php index 385062f07..0b29146c1 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -366,7 +366,7 @@ function notifier_run($argv, $argc){ logger('notifier: target item not forwardable: type ' . $target_item['item_type'], LOGGER_DEBUG); return; } - if(intval($target_item['item_unpublished']) || intval($target_item['item_delayed_publish'])) { + if(intval($target_item['item_unpublished']) || intval($target_item['item_delayed'])) { logger('notifier: target item not published, so not forwardable', LOGGER_DEBUG); return; } -- cgit v1.2.3 From b62614bbd48151837e29ab56a53e683d2f4dcb01 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 1 Nov 2015 15:51:45 -0800 Subject: improve /locs page with some field notes and the ability to do a forced sync --- include/notifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/notifier.php') diff --git a/include/notifier.php b/include/notifier.php index 0b29146c1..34a527e15 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -675,7 +675,7 @@ function notifier_run($argv, $argc){ dbesc(json_encode($encoded_item)) ); // only create delivery reports for normal undeleted items - if(array_key_exists('postopts',$target_item) && (! $target_item['item_deleted'])) { + if(is_array($target_item) && array_key_exists('postopts',$target_item) && (! $target_item['item_deleted'])) { q("insert into dreport ( dreport_mid, dreport_site, dreport_recip, dreport_result, dreport_time, dreport_xchan, dreport_queue ) values ( '%s','%s','%s','%s','%s','%s','%s' ) ", dbesc($target_item['mid']), dbesc($hub['hubloc_host']), -- cgit v1.2.3