From: Michael Vogel Date: Mon, 7 Jan 2013 18:19:55 +0000 (+0100) Subject: fbpost: Sometimes comments were sent to facebook. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=75f6b10c4edc5c027db472a7801bc52f85fd0971;p=friendica-addons.git fbpost: Sometimes comments were sent to facebook. --- diff --git a/fbpost/fbpost.php b/fbpost/fbpost.php index bef8117e..e33ad626 100644 --- a/fbpost/fbpost.php +++ b/fbpost/fbpost.php @@ -394,6 +394,10 @@ function fbpost_post_hook(&$a,&$b) { if($b['deleted'] || ($b['created'] !== $b['edited'])) return; + // Don't transmit answers (have to be cleaned up in the following code) + if($b['parent'] != $b['id']) + return; + // if post comes from facebook don't send it back if($b['app'] == "Facebook") return;