bug #388 notify_comment sent after post deleted
authorfriendica <info@friendica.com>
Mon, 23 Apr 2012 02:20:24 +0000 (19:20 -0700)
committerfriendica <info@friendica.com>
Mon, 23 Apr 2012 02:20:24 +0000 (19:20 -0700)
facebook.tgz
facebook/facebook.php
smiley_pack.tgz

index 681be28..a3e60e2 100644 (file)
Binary files a/facebook.tgz and b/facebook.tgz differ
index 874ef30..011b9ac 100644 (file)
@@ -1425,7 +1425,7 @@ function fb_consume_comment(&$a, &$user, &$self, $fb_id, $wall, &$orig_post, &$c
     $cmntdata['body'] = $cmnt->message;
     $item = item_store($cmntdata);
 
-    $myconv = q("SELECT `author-link`, `author-avatar`, `parent` FROM `item` WHERE `parent-uri` = '%s' AND `uid` = %d AND `parent` != 0 ",
+    $myconv = q("SELECT `author-link`, `author-avatar`, `parent` FROM `item` WHERE `parent-uri` = '%s' AND `uid` = %d AND `parent` != 0 AND `deleted` = 0",
         dbesc($orig_post['uri']),
         intval($uid)
     );
index 7ef9d88..8aae089 100644 (file)
Binary files a/smiley_pack.tgz and b/smiley_pack.tgz differ