aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-10-02 11:43:41 +0200
committerMax Kostikov <max@kostikov.co>2019-10-02 11:43:41 +0200
commit58b77e3427ef5130ca07ebaf73d86cbaff4863cd (patch)
tree2332db7e20d12badaf2213d36f999a4d5d131462 /Zotlabs
parent79b05e48e8ef904bd386f4c8433ca02830ccdc71 (diff)
parentcdcac8625623dd4cf309bcd942833caad8d7af6b (diff)
downloadvolse-hubzilla-58b77e3427ef5130ca07ebaf73d86cbaff4863cd.tar.gz
volse-hubzilla-58b77e3427ef5130ca07ebaf73d86cbaff4863cd.tar.bz2
volse-hubzilla-58b77e3427ef5130ca07ebaf73d86cbaff4863cd.zip
Merge branch 'cherry-pick-2c7ed093' into 'dev'
fix missing summary in mod article_edit See merge request hubzilla/core!1744
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Article_edit.php5
1 files changed, 2 insertions, 3 deletions
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'),