]> git.mxchange.org Git - friendica-addons.git/blobdiff - facebook/facebook.php
bug #388 notify_comment sent after post deleted
[friendica-addons.git] / facebook / facebook.php
index 874ef3022da9ea972732f686228f3d206931fa08..011b9ac1000600749b36b3b2b29d6f5c89e45d6a 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)
     );