]> git.mxchange.org Git - friendica.git/commitdiff
notify not called on new photo album (first item)
authorFriendika <info@friendika.com>
Tue, 3 May 2011 12:27:19 +0000 (05:27 -0700)
committerFriendika <info@friendika.com>
Tue, 3 May 2011 12:27:19 +0000 (05:27 -0700)
addon/facebook/facebook.php
mod/photos.php

index 64ca9af560beff22616a461d37b6d486f9d66384..8fe6f3717513f1a6dd8537c100606bd8ad55d14b 100644 (file)
@@ -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;
 
index 324ce898d26003fdf188ebd919114cc43e6590a6..86c2cb597d598ba0f37a7b4d94a84b07532c2ff1 100644 (file)
@@ -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