aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-04-15 10:22:54 +0200
committerMario <mario@mariovavti.com>2020-04-15 10:22:54 +0200
commita7273668d8118407712750f588bb5d99cf0c4bb2 (patch)
tree4a5a8798392cdfa08944d475a838c02a9b26144a /Zotlabs
parentc640d1c599bdadb9c4d4f2a0e5b82db585d17686 (diff)
parentb1f74f4ef470715144728bfd16d5f6b6a802046d (diff)
downloadvolse-hubzilla-a7273668d8118407712750f588bb5d99cf0c4bb2.tar.gz
volse-hubzilla-a7273668d8118407712750f588bb5d99cf0c4bb2.tar.bz2
volse-hubzilla-a7273668d8118407712750f588bb5d99cf0c4bb2.zip
Merge branch 'dev' into 'dev'
Remove unnecessary [summary] tag processing See merge request hubzilla/core!1850
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Item.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index fcc040e01..cdfc3c9a8 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -723,16 +723,16 @@ class Item extends Controller {
// 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);