]> git.mxchange.org Git - friendica-addons.git/commitdiff
fbpost: Sometimes comments were sent to facebook.
authorMichael Vogel <icarus@dabo.de>
Mon, 7 Jan 2013 18:19:55 +0000 (19:19 +0100)
committerMichael Vogel <icarus@dabo.de>
Mon, 7 Jan 2013 18:19:55 +0000 (19:19 +0100)
fbpost/fbpost.php

index bef8117e553d6b400bb1242346e666cefe264c40..e33ad6262ebfc5369056a4ea3639e0efa10c86e4 100644 (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;