Merge branch 'cherry-pick-2c7ed093' into 'dev'
fix missing summary in mod article_edit See merge request hubzilla/core!1744
This commit is contained in:
commit
58b77e3427
@ -85,10 +85,9 @@ class Article_edit extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
$mimetype = $itm[0]['mimetype'];
|
$mimetype = $itm[0]['mimetype'];
|
||||||
|
|
||||||
|
$summary = (($itm[0]['summary']) ? '[summary]' . $itm[0]['summary'] . '[/summary]' . "\r\n" : '');
|
||||||
$content = $itm[0]['body'];
|
$content = $itm[0]['body'];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$rp = 'articles/' . $channel['channel_address'];
|
$rp = 'articles/' . $channel['channel_address'];
|
||||||
|
|
||||||
$x = array(
|
$x = array(
|
||||||
@ -110,7 +109,7 @@ class Article_edit extends \Zotlabs\Web\Controller {
|
|||||||
'ptyp' => $itm[0]['type'],
|
'ptyp' => $itm[0]['type'],
|
||||||
'mimeselect' => false,
|
'mimeselect' => false,
|
||||||
'mimetype' => $itm[0]['mimetype'],
|
'mimetype' => $itm[0]['mimetype'],
|
||||||
'body' => undo_post_tagging($content),
|
'body' => $summary . undo_post_tagging($content),
|
||||||
'post_id' => $post_id,
|
'post_id' => $post_id,
|
||||||
'visitor' => true,
|
'visitor' => true,
|
||||||
'title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'),
|
'title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'),
|
||||||
|
Reference in New Issue
Block a user