From cdcac8625623dd4cf309bcd942833caad8d7af6b Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 2 Oct 2019 08:59:34 +0000 Subject: fix missing summary in mod article_edit (cherry picked from commit 2c7ed093699ea0c0f68068fdd8a035454b9a76a3) --- Zotlabs/Module/Article_edit.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Zotlabs/Module') diff --git a/Zotlabs/Module/Article_edit.php b/Zotlabs/Module/Article_edit.php index d3cce343f..635b3ce2a 100644 --- a/Zotlabs/Module/Article_edit.php +++ b/Zotlabs/Module/Article_edit.php @@ -85,10 +85,9 @@ class Article_edit extends \Zotlabs\Web\Controller { $mimetype = $itm[0]['mimetype']; + $summary = (($itm[0]['summary']) ? '[summary]' . $itm[0]['summary'] . '[/summary]' . "\r\n" : ''); $content = $itm[0]['body']; - - $rp = 'articles/' . $channel['channel_address']; $x = array( @@ -110,7 +109,7 @@ class Article_edit extends \Zotlabs\Web\Controller { 'ptyp' => $itm[0]['type'], 'mimeselect' => false, 'mimetype' => $itm[0]['mimetype'], - 'body' => undo_post_tagging($content), + 'body' => $summary . undo_post_tagging($content), 'post_id' => $post_id, 'visitor' => true, 'title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'), -- cgit v1.2.3