aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Zotlabs/Lib/Libzot.php14
-rw-r--r--boot.php4
-rw-r--r--include/items.php3
-rw-r--r--view/ru/register_verify_member.tpl5
4 files changed, 20 insertions, 6 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index a19c8e544..c7d001d21 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -2924,7 +2924,19 @@ class Libzot {
];
$ret['channel_role'] = get_pconfig($e['channel_id'], 'system', 'permissions_role', 'custom');
- $ret['protocols'] = ['zot6', 'zot'];
+
+ $hookinfo = [
+ 'channel_id' => $id,
+ 'protocols' => ['zot6', 'zot']
+ ];
+ /**
+ * @hooks channel_protocols
+ * * \e int \b channel_id
+ * * \e array \b protocols
+ */
+ call_hooks('channel_protocols', $hookinfo);
+
+ $ret['protocols'] = $hookinfo['protocols'];
$ret['searchable'] = $searchable;
$ret['adult_content'] = $adult_channel;
$ret['public_forum'] = $public_forum;
diff --git a/boot.php b/boot.php
index c057f8278..622784e9c 100644
--- a/boot.php
+++ b/boot.php
@@ -2420,10 +2420,10 @@ function construct_page() {
// security headers - see https://securityheaders.io
- if(App::get_scheme() === 'https' && App::$config['system']['transport_security_header'])
+ if(App::get_scheme() === 'https' && isset(App::$config['system']['transport_security_header']) && intval(App::$config['system']['transport_security_header']) == 1)
header("Strict-Transport-Security: max-age=31536000");
- if(isset(App::$config['system']['content_security_policy'])) {
+ if(isset(App::$config['system']['content_security_policy']) && intval(App::$config['system']['content_security_policy']) == 1) {
$cspsettings = [
'script-src' => [ "'self'", "'unsafe-inline'", "'unsafe-eval'" ],
'style-src' => [ "'self'", "'unsafe-inline'" ],
diff --git a/include/items.php b/include/items.php
index 29160c01d..30129b0aa 100644
--- a/include/items.php
+++ b/include/items.php
@@ -726,7 +726,8 @@ function get_item_elements($x,$allow_code = false) {
$arr['term'] = decode_tags($x['tags']);
$arr['iconfig'] = decode_item_meta($x['meta']);
- $arr['item_private'] = ((array_key_exists('flags',$x) && is_array($x['flags']) && in_array('private',$x['flags'])) ? 1 : 0);
+ $private_state = (($x['allow_cid'] && !$x['allow_gid']) ? 2 : 1);
+ $arr['item_private'] = ((array_key_exists('flags',$x) && is_array($x['flags']) && in_array('private',$x['flags'])) ? $private_state : 0);
$arr['item_flags'] = 0;
diff --git a/view/ru/register_verify_member.tpl b/view/ru/register_verify_member.tpl
index 8a466ddf6..7784a1786 100644
--- a/view/ru/register_verify_member.tpl
+++ b/view/ru/register_verify_member.tpl
@@ -14,10 +14,11 @@ Cайт: {{$siteurl}}
{{$hash}}
-{{if $due}}{{$due}}{{/ if}}
-
+{{if $timeframe}}
+Этот код действителен с {{$timeframe.0}} UTC и до {{$timeframe.1}} UTC.
+{{/if}}
Если вы зарегистрировали эту учетную запись, введите код подтверждения при запросе или перейдите по следующей ссылке:
{{$siteurl}}/regate/{{$mail}}