fbpost: Sometimes comments were sent to facebook.

This commit is contained in:
Michael Vogel 2013-01-07 19:19:55 +01:00
parent cef923f104
commit 75f6b10c4e

View file

@ -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;