aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2020-04-12 21:41:32 +0200
committerMax Kostikov <max@kostikov.co>2020-04-12 21:41:32 +0200
commit31e1e9cbfb3ad74f8470c79cec2b1b21d3739117 (patch)
tree34b0b6716204b6a8d4bd34e7d4f2617f312933ed /Zotlabs
parent2c8a243ece79af05e30b1926bd372698d30f7aab (diff)
downloadvolse-hubzilla-31e1e9cbfb3ad74f8470c79cec2b1b21d3739117.tar.gz
volse-hubzilla-31e1e9cbfb3ad74f8470c79cec2b1b21d3739117.tar.bz2
volse-hubzilla-31e1e9cbfb3ad74f8470c79cec2b1b21d3739117.zip
Remove unnecessary [summary] tag processing
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Item.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index fcc040e01..321089644 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -721,18 +721,18 @@ 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 = trim($body_content);
- }
-
- $summary = cleanup_bbcode($summary);
+ $match = '';
+ $cnt = preg_match("/\[summary\](.*?)\[\/summary\]/ism",$body,$match);
+ if($cnt) {
+ $summary .= $match[1];
+ }
+ $body_content = preg_replace("/^(.*?)\[summary\](.*?)\[\/summary\](.*?)$/ism", '',$body);
+ $body = trim($body_content);
+ }
+ */
+ $summary = cleanup_bbcode($summary);
$body = cleanup_bbcode($body);