Preparations for shared posts

This commit is contained in:
Michael Vogel 2012-12-17 03:04:13 +01:00
parent c5418789c9
commit 0267222fb4
4 changed files with 43 additions and 2 deletions

View file

@ -294,6 +294,9 @@ function twitter_shortenmsg($b) {
$recycle = html_entity_decode("◌ ", ENT_QUOTES, 'UTF-8');
$body = preg_replace( '/'.$recycle.'\[url\=(\w+.*?)\](\w+.*?)\[\/url\]/i', "\n", $body);
// remove the share element
$body = preg_replace("/\[share(.*?)\](.*?)\[\/share\]/ism","\n\n$2\n\n",$body);
// At first convert the text to html
$html = bbcode($body, false, false);