issue #639, voting setting is lost after post is edited (also the disabling of comments)
This commit is contained in:
parent
982b596fa4
commit
ec18c3770b
@ -78,6 +78,7 @@ class Editpost extends \Zotlabs\Web\Controller {
|
||||
|
||||
$x = array(
|
||||
'nickname' => $channel['channel_address'],
|
||||
'item' => $itm[0],
|
||||
'editor_autocomplete'=> true,
|
||||
'bbco_autocomplete'=> 'bbcode',
|
||||
'return_path' => $_SESSION['return_url'],
|
||||
|
@ -1396,11 +1396,11 @@ function status_editor($a, $x, $popup = false) {
|
||||
'$setloc' => $setloc,
|
||||
'$voting' => t('Toggle voting'),
|
||||
'$feature_voting' => $feature_voting,
|
||||
'$consensus' => 0,
|
||||
'$consensus' => ((array_key_exists('item',$x)) ? $x['item']['item_consensus'] : 0),
|
||||
'$nocommenttitle' => t('Disable comments'),
|
||||
'$nocommenttitlesub' => t('Toggle comments'),
|
||||
'$feature_nocomment' => $feature_nocomment,
|
||||
'$nocomment' => 0,
|
||||
'$nocomment' => ((array_key_exists('item',$x)) ? $x['item']['item_nocomment'] : 0),
|
||||
'$clearloc' => $clearloc,
|
||||
'$title' => ((x($x, 'title')) ? htmlspecialchars($x['title'], ENT_COMPAT,'UTF-8') : ''),
|
||||
'$placeholdertitle' => ((x($x, 'placeholdertitle')) ? $x['placeholdertitle'] : t('Title (optional)')),
|
||||
|
Reference in New Issue
Block a user