aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2018-04-09 13:18:09 +0200
committerGitHub <noreply@github.com>2018-04-09 13:18:09 +0200
commit9dc831f1ef5e59a91eeda2756842b7ac262e1ac6 (patch)
tree08faa8318ab53966279b6de5f3fb51dd595f6aac /Zotlabs
parent6844d7c752a0d8614aa7490287d72a84a95b3a73 (diff)
parentf9ec3c66ff1305ca0647454d27793ac5365f7f4a (diff)
downloadvolse-hubzilla-9dc831f1ef5e59a91eeda2756842b7ac262e1ac6.tar.gz
volse-hubzilla-9dc831f1ef5e59a91eeda2756842b7ac262e1ac6.tar.bz2
volse-hubzilla-9dc831f1ef5e59a91eeda2756842b7ac262e1ac6.zip
Merge pull request #1051 from anaqreon/auto-save
Auto-save comment and post text
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/ThreadItem.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index d35d4732a..c2aa920b9 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -733,6 +733,8 @@ class ThreadItem {
$arr = array('comment_buttons' => '','id' => $this->get_id());
call_hooks('comment_buttons',$arr);
$comment_buttons = $arr['comment_buttons'];
+
+ $feature_auto_save_draft = ((feature_enabled($conv->get_profile_owner(), 'auto_save_draft')) ? "true" : "false");
$comment_box = replace_macros($template,array(
'$return_path' => '',
@@ -768,7 +770,8 @@ class ThreadItem {
'$anoncomments' => ((($conv->get_mode() === 'channel' || $conv->get_mode() === 'display') && perm_is_allowed($conv->get_profile_owner(),'','post_comments')) ? true : false),
'$anonname' => [ 'anonname', t('Your full name (required)') ],
'$anonmail' => [ 'anonmail', t('Your email address (required)') ],
- '$anonurl' => [ 'anonurl', t('Your website URL (optional)') ]
+ '$anonurl' => [ 'anonurl', t('Your website URL (optional)') ],
+ '$auto_save_draft' => $feature_auto_save_draft,
));
return $comment_box;