mirror of
https://github.com/friendica/friendica
synced 2024-12-24 12:40:16 +00:00
commit
2e5c970cb1
1 changed files with 3 additions and 3 deletions
|
@ -2156,9 +2156,9 @@ function diaspora_send_status($item,$owner,$contact,$public_batch = false) {
|
||||||
/**
|
/**
|
||||||
* Transform #tags, strip off the [url] and replace spaces with underscore
|
* Transform #tags, strip off the [url] and replace spaces with underscore
|
||||||
*/
|
*/
|
||||||
$body = preg_replace_callback('/#\[url\=(\w+.*?)\](\w+.*?)\[\/url\]/i', function($match) {
|
$body = preg_replace_callback('/#\[url\=(\w+.*?)\](\w+.*?)\[\/url\]/i', create_function('$match',
|
||||||
return '#'. str_replace(' ', '_', $match[2]);
|
'return \'#\'. str_replace(\' \', \'_\', $match[2]);'
|
||||||
}, $body);
|
), $body);
|
||||||
|
|
||||||
//if(strlen($title))
|
//if(strlen($title))
|
||||||
// $body = "[b]".html_entity_decode($title)."[/b]\n\n".$body;
|
// $body = "[b]".html_entity_decode($title)."[/b]\n\n".$body;
|
||||||
|
|
Loading…
Reference in a new issue