From 6c1d587ae3609fbf9670786b9ce807d104fe774d Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 3 May 2011 05:27:19 -0700 Subject: [PATCH] notify not called on new photo album (first item) --- addon/facebook/facebook.php | 2 +- mod/photos.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index 64ca9af560..8fe6f37175 100644 --- a/addon/facebook/facebook.php +++ b/addon/facebook/facebook.php @@ -291,7 +291,7 @@ function facebook_cron($a,$b) { $last = get_config('facebook','last_poll'); - $poll_interval = get_config('facebook','poll_interval'); + $poll_interval = intval(get_config('facebook','poll_interval')); if(! $poll_interval) $poll_interval = 3600; diff --git a/mod/photos.php b/mod/photos.php index 324ce898d2..86c2cb597d 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -639,6 +639,9 @@ foreach($_FILES AS $key => $val) { $item_id = item_store($arr); + if($visible) + proc_run('php', "include/notifier.php", 'wall-new', $item_id); + call_hooks('photo_post_end',intval($item_id)); // addon uploaders should call "killme()" [e.g. exit] within the photo_post_end hook