notify not called on new photo album (first item)

This commit is contained in:
Friendika 2011-05-03 05:27:19 -07:00
parent 0f261ef8fa
commit 6c1d587ae3
2 changed files with 4 additions and 1 deletions

View file

@ -291,7 +291,7 @@ function facebook_cron($a,$b) {
$last = get_config('facebook','last_poll'); $last = get_config('facebook','last_poll');
$poll_interval = get_config('facebook','poll_interval'); $poll_interval = intval(get_config('facebook','poll_interval'));
if(! $poll_interval) if(! $poll_interval)
$poll_interval = 3600; $poll_interval = 3600;

View file

@ -639,6 +639,9 @@ foreach($_FILES AS $key => $val) {
$item_id = item_store($arr); $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)); call_hooks('photo_post_end',intval($item_id));
// addon uploaders should call "killme()" [e.g. exit] within the photo_post_end hook // addon uploaders should call "killme()" [e.g. exit] within the photo_post_end hook