aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-17 04:53:05 -0700
committerFriendika <info@friendika.com>2011-05-17 04:53:05 -0700
commit6c397255c87c26a8e1b5e548ee49a4779c93fb18 (patch)
treef36660abe5bff6f988a8edc8013267b1fbe93f2e
parent01a871c991e00ee1d61ea9f1a1c35fa3eb667b1a (diff)
downloadvolse-hubzilla-6c397255c87c26a8e1b5e548ee49a4779c93fb18.tar.gz
volse-hubzilla-6c397255c87c26a8e1b5e548ee49a4779c93fb18.tar.bz2
volse-hubzilla-6c397255c87c26a8e1b5e548ee49a4779c93fb18.zip
turn dislike activities into plain text comments for FB delivery
-rw-r--r--addon/facebook/facebook.php5
1 files changed, 5 insertions, 0 deletions
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];