mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 19:08:49 +00:00
Preparations for shared posts
This commit is contained in:
parent
c5418789c9
commit
0267222fb4
4 changed files with 43 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue