From 75f6b10c4edc5c027db472a7801bc52f85fd0971 Mon Sep 17 00:00:00 2001
From: Michael Vogel <icarus@dabo.de>
Date: Mon, 7 Jan 2013 19:19:55 +0100
Subject: [PATCH] fbpost: Sometimes comments were sent to facebook.

---
 fbpost/fbpost.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/fbpost/fbpost.php b/fbpost/fbpost.php
index bef8117e5..e33ad6262 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;