diff options
author | Max Kostikov <max@kostikov.co> | 2020-04-12 23:08:11 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2020-04-12 23:08:11 +0200 |
commit | bbca6be0f94625f541b0d985fe66df54fc8f4be2 (patch) | |
tree | 59180fbc10bcbb014dcb009e6bbd88799ee9162e | |
parent | 31e1e9cbfb3ad74f8470c79cec2b1b21d3739117 (diff) | |
download | volse-hubzilla-bbca6be0f94625f541b0d985fe66df54fc8f4be2.tar.gz volse-hubzilla-bbca6be0f94625f541b0d985fe66df54fc8f4be2.tar.bz2 volse-hubzilla-bbca6be0f94625f541b0d985fe66df54fc8f4be2.zip |
Update Item.php
-rw-r--r-- | Zotlabs/Module/Item.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index 321089644..cdfc3c9a8 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -721,17 +721,17 @@ class Item extends Controller { // BBCODE alert: the following functions assume bbcode input // and will require alternatives for alternative content-types (text/html, text/markdown, text/plain, etc.) // we may need virtual or template classes to implement the possible alternatives - /* + if(strpos($body,'[/summary]') !== false) { $match = ''; $cnt = preg_match("/\[summary\](.*?)\[\/summary\]/ism",$body,$match); if($cnt) { $summary .= $match[1]; } - $body_content = preg_replace("/^(.*?)\[summary\](.*?)\[\/summary\](.*?)$/ism", '',$body); + $body_content = preg_replace("/\[summary\](.*?)\[\/summary\]/ism", '',$body); $body = trim($body_content); } - */ + $summary = cleanup_bbcode($summary); $body = cleanup_bbcode($body); |