turn dislike activities into plain text comments for FB delivery
This commit is contained in:
parent
01a871c991
commit
6c397255c8
1 changed files with 5 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue