fbpost: Sometimes comments were sent to facebook.

pull/92/head
Michael Vogel 2013-01-07 19:19:55 +01:00
parent cef923f104
commit 75f6b10c4e
1 changed files with 4 additions and 0 deletions

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;