bug #388 notify_comment sent after post deleted

This commit is contained in:
friendica 2012-04-22 19:20:24 -07:00
parent b6027b2fe7
commit 80b79f238f
3 changed files with 1 additions and 1 deletions

Binary file not shown.

View 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)
);

Binary file not shown.