aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMichael Meer <michael@meer.name>2014-01-28 09:49:09 +0100
committerMichael Meer <michael@meer.name>2014-01-28 09:49:09 +0100
commit8ddee71c2b0f384470965dd46a2e594a4f98f8e0 (patch)
tree84bcf6e0f94365b186b4613b43d7a72f5f22f525 /mod
parent904db593df914d2932d9c2f018b00987052461d7 (diff)
parentf104b4dc275891785ec03abd779d8aafe5163815 (diff)
downloadvolse-hubzilla-8ddee71c2b0f384470965dd46a2e594a4f98f8e0.tar.gz
volse-hubzilla-8ddee71c2b0f384470965dd46a2e594a4f98f8e0.tar.bz2
volse-hubzilla-8ddee71c2b0f384470965dd46a2e594a4f98f8e0.zip
Merge branch 'master' of https://github.com/friendica/red
to be in sync with main repro
Diffstat (limited to 'mod')
-rw-r--r--mod/editpost.php12
-rw-r--r--mod/photos.php4
-rw-r--r--mod/rpost.php6
3 files changed, 17 insertions, 5 deletions
diff --git a/mod/editpost.php b/mod/editpost.php
index 7cc33d60d..918a70d36 100644
--- a/mod/editpost.php
+++ b/mod/editpost.php
@@ -92,6 +92,11 @@ function editpost_content(&$a) {
}
+ $cipher = get_pconfig(get_app()->profile['profile_uid'],'system','default_cipher');
+ if(! $cipher)
+ $cipher = 'aes256';
+
+
$o .= replace_macros($tpl,array(
'$return_path' => $_SESSION['return_url'],
'$action' => 'item',
@@ -128,11 +133,12 @@ function editpost_content(&$a) {
'$jotplugins' => $jotplugins,
'$sourceapp' => t($a->sourcename),
'$catsenabled' => $catsenabled,
- '$defexpire' => $itm[0]['expires'],
- '$feature_expire' => 'none',
+ '$defexpire' => datetime_convert('UTC', date_default_timezone_get(),$itm[0]['expires']),
+ '$feature_expire' => ((feature_enabled(get_app()->profile['profile_uid'],'content_expire') && (! $webpage)) ? 'block' : 'none'),
'$expires' => t('Set expiration date'),
- '$feature_encrypt' => 'none',
+ '$feature_encrypt' => ((feature_enabled(get_app()->profile['profile_uid'],'content_encrypt') && (! $webpage)) ? 'block' : 'none'),
'$encrypt' => t('Encrypt text'),
+ '$cipher' => $cipher,
'$expiryModalOK' => t('OK'),
'$expiryModalCANCEL' => t('Cancel'),
));
diff --git a/mod/photos.php b/mod/photos.php
index 23733e121..c299fe778 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -778,6 +778,8 @@ function photos_content(&$a) {
return;
}
+
+
$prevlink = '';
$nextlink = '';
@@ -898,6 +900,8 @@ function photos_content(&$a) {
}
}
+// logger('mod_photo: link_item' . print_r($link_item,true));
+
// FIXME - remove this when we move to conversation module
$r = $r[0]['children'];
diff --git a/mod/rpost.php b/mod/rpost.php
index 8e01ef5d4..852a57d78 100644
--- a/mod/rpost.php
+++ b/mod/rpost.php
@@ -65,8 +65,10 @@ function rpost_content(&$a) {
if($_REQUEST['remote_return']) {
$_SESSION['remote_return'] = $_REQUEST['remote_return'];
}
- if(argc() > 1 && argv(1) === 'return' && $_SESSION['remote_return']) {
- goaway($_SESSION['remote_return']);
+ if(argc() > 1 && argv(1) === 'return') {
+ if($_SESSION['remote_return'])
+ goaway($_SESSION['remote_return']);
+ goaway(z_root() . '/network');
}
$plaintext = true;