Post body and title are auto-saved

This commit is contained in:
Andrew Manning
2018-04-04 15:22:38 -04:00
parent aca719ac74
commit a5aff7d0c9
4 changed files with 85 additions and 4 deletions

View File

@@ -1050,6 +1050,10 @@ class Item extends \Zotlabs\Web\Controller {
logger('post_complete');
// Remove auto-saved post text if the post was successfully posted
del_pconfig(local_channel(),'autosavetext_post','body');
del_pconfig(local_channel(),'autosavetext_post','title');
if($moderated) {
info(t('Your comment is awaiting approval.') . EOL);
}