aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-10-25 16:54:18 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-10-25 16:54:18 -0700
commit917d0ced4a1f0890172b90a9551131fa43bea78b (patch)
tree7a8dc4572eb51d8ae3c49328117702e043b58e42 /include/conversation.php
parent7f3df847a2ba1e836c930f89a681e1589131f557 (diff)
downloadvolse-hubzilla-917d0ced4a1f0890172b90a9551131fa43bea78b.tar.gz
volse-hubzilla-917d0ced4a1f0890172b90a9551131fa43bea78b.tar.bz2
volse-hubzilla-917d0ced4a1f0890172b90a9551131fa43bea78b.zip
new feature: delayed posting
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php
index ebbc6684c..c2d9641ba 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1166,6 +1166,10 @@ function status_editor($a, $x, $popup = false) {
if($defexpire)
$defexpire = datetime_convert('UTC',date_default_timezone_get(),$defexpire,'Y-m-d H:i');
+ $defpublish = ((($z = get_pconfig($x['profile_uid'], 'system', 'default_post_publish')) && (! $webpage)) ? $z : '');
+ if($defpublish)
+ $defpublish = datetime_convert('UTC',date_default_timezone_get(),$defpublish,'Y-m-d H:i');
+
$cipher = get_pconfig($x['profile_uid'], 'system', 'default_cipher');
if(! $cipher)
$cipher = 'aes256';
@@ -1237,6 +1241,9 @@ function status_editor($a, $x, $popup = false) {
'$defexpire' => $defexpire,
'$feature_expire' => ((feature_enabled($x['profile_uid'], 'content_expire') && (! $webpage)) ? true : false),
'$expires' => t('Set expiration date'),
+ '$defpublish' => $defpublish,
+ '$feature_future' => ((feature_enabled($x['profile_uid'], 'delayed_posting') && (! $webpage)) ? true : false),
+ '$future_txt' => t('Set publish date'),
'$feature_encrypt' => ((feature_enabled($x['profile_uid'], 'content_encrypt') && (! $webpage)) ? true : false),
'$encrypt' => t('Encrypt text'),
'$cipher' => $cipher,