From 6c397255c87c26a8e1b5e548ee49a4779c93fb18 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 17 May 2011 04:53:05 -0700 Subject: turn dislike activities into plain text comments for FB delivery --- addon/facebook/facebook.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'addon') diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index ebb0c5344..cf2bfe434 100644 --- a/addon/facebook/facebook.php +++ b/addon/facebook/facebook.php @@ -474,6 +474,11 @@ function facebook_post_hook(&$a,&$b) { // make links readable before we strip the code + // unless it's a dislike - just send the text as a comment + + if($b['verb'] == ACTIVITY_DISLIKE) + $msg = trim(strip_tags(bbcode($msg))); + if(preg_match("/\[url=(.+?)\](.+?)\[\/url\]/is",$msg,$matches)) { $link = $matches[1]; -- cgit v1.2.3