Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
This commit is contained in:
commit
ca58ef80ae
@ -17,20 +17,18 @@ class Display extends \Zotlabs\Web\Controller {
|
|||||||
if($load)
|
if($load)
|
||||||
$_SESSION['loadtime'] = datetime_convert();
|
$_SESSION['loadtime'] = datetime_convert();
|
||||||
|
|
||||||
|
|
||||||
if(observer_prohibited()) {
|
if(observer_prohibited()) {
|
||||||
notice( t('Public access denied.') . EOL);
|
notice( t('Public access denied.') . EOL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(argc() > 1 && argv(1) !== 'load')
|
if(argc() > 1 && argv(1) !== 'load')
|
||||||
$item_hash = argv(1);
|
$item_hash = argv(1);
|
||||||
|
|
||||||
if($_REQUEST['mid'])
|
if($_REQUEST['mid'])
|
||||||
$item_hash = $_REQUEST['mid'];
|
$item_hash = $_REQUEST['mid'];
|
||||||
|
|
||||||
if(! $item_hash) {
|
if(! $item_hash) {
|
||||||
\App::$error = 404;
|
\App::$error = 404;
|
||||||
notice( t('Item not found.') . EOL);
|
notice( t('Item not found.') . EOL);
|
||||||
return;
|
return;
|
||||||
@ -39,12 +37,10 @@ class Display extends \Zotlabs\Web\Controller {
|
|||||||
$observer_is_owner = false;
|
$observer_is_owner = false;
|
||||||
$updateable = false;
|
$updateable = false;
|
||||||
|
|
||||||
|
|
||||||
if(local_channel() && (! $update)) {
|
if(local_channel() && (! $update)) {
|
||||||
|
|
||||||
$channel = \App::get_channel();
|
$channel = \App::get_channel();
|
||||||
|
|
||||||
|
|
||||||
$channel_acl = array(
|
$channel_acl = array(
|
||||||
'allow_cid' => $channel['channel_allow_cid'],
|
'allow_cid' => $channel['channel_allow_cid'],
|
||||||
'allow_gid' => $channel['channel_allow_gid'],
|
'allow_gid' => $channel['channel_allow_gid'],
|
||||||
@ -52,7 +48,6 @@ class Display extends \Zotlabs\Web\Controller {
|
|||||||
'deny_gid' => $channel['channel_deny_gid']
|
'deny_gid' => $channel['channel_deny_gid']
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
$x = array(
|
$x = array(
|
||||||
'is_owner' => true,
|
'is_owner' => true,
|
||||||
'allow_location' => ((intval(get_pconfig($channel['channel_id'],'system','use_browser_location'))) ? '1' : ''),
|
'allow_location' => ((intval(get_pconfig($channel['channel_id'],'system','use_browser_location'))) ? '1' : ''),
|
||||||
@ -137,7 +132,6 @@ class Display extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
if((! $update) && (! $load)) {
|
if((! $update) && (! $load)) {
|
||||||
|
|
||||||
|
|
||||||
$static = ((local_channel()) ? channel_manual_conv_update(local_channel()) : 1);
|
$static = ((local_channel()) ? channel_manual_conv_update(local_channel()) : 1);
|
||||||
|
|
||||||
$o .= '<div id="live-display"></div>' . "\r\n";
|
$o .= '<div id="live-display"></div>' . "\r\n";
|
||||||
@ -211,9 +205,7 @@ class Display extends \Zotlabs\Web\Controller {
|
|||||||
);
|
);
|
||||||
if($r) {
|
if($r) {
|
||||||
$updateable = true;
|
$updateable = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if($r === null) {
|
if($r === null) {
|
||||||
@ -248,7 +240,6 @@ class Display extends \Zotlabs\Web\Controller {
|
|||||||
$sysid = $sys['channel_id'];
|
$sysid = $sys['channel_id'];
|
||||||
|
|
||||||
if(local_channel()) {
|
if(local_channel()) {
|
||||||
|
|
||||||
$r = q("SELECT item.parent AS item_id from item
|
$r = q("SELECT item.parent AS item_id from item
|
||||||
WHERE uid = %d
|
WHERE uid = %d
|
||||||
and parent_mid = '%s'
|
and parent_mid = '%s'
|
||||||
@ -291,10 +282,8 @@ class Display extends \Zotlabs\Web\Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($r) {
|
if($r) {
|
||||||
|
|
||||||
$parents_str = ids_to_querystr($r,'item_id');
|
$parents_str = ids_to_querystr($r,'item_id');
|
||||||
if($parents_str) {
|
if($parents_str) {
|
||||||
|
|
||||||
$items = q("SELECT item.*, item.id AS item_id
|
$items = q("SELECT item.*, item.id AS item_id
|
||||||
FROM item
|
FROM item
|
||||||
WHERE parent in ( %s ) $item_normal ",
|
WHERE parent in ( %s ) $item_normal ",
|
||||||
@ -305,7 +294,8 @@ class Display extends \Zotlabs\Web\Controller {
|
|||||||
$items = fetch_post_tags($items,true);
|
$items = fetch_post_tags($items,true);
|
||||||
$items = conv_sort($items,'created');
|
$items = conv_sort($items,'created');
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
$items = array();
|
$items = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -327,11 +317,9 @@ class Display extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
$o .= '<div id="content-complete"></div>';
|
$o .= '<div id="content-complete"></div>';
|
||||||
|
|
||||||
|
|
||||||
if((($update && $load) || $checkjs->disabled()) && (! $items)) {
|
if((($update && $load) || $checkjs->disabled()) && (! $items)) {
|
||||||
|
|
||||||
$r = q("SELECT id, item_flags FROM item WHERE id = '%s' OR mid = '%s' LIMIT 1",
|
$r = q("SELECT id, item_deleted FROM item WHERE mid = '%s' LIMIT 1",
|
||||||
dbesc($item_hash),
|
|
||||||
dbesc($item_hash)
|
dbesc($item_hash)
|
||||||
);
|
);
|
||||||
if($r) {
|
if($r) {
|
||||||
@ -352,5 +340,4 @@ class Display extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -509,7 +509,7 @@ class Channel {
|
|||||||
|
|
||||||
'$expire' => array('expire',t('Expire other channel content after this many days'),$expire, t('0 or blank to use the website limit.') . ' ' . ((intval($sys_expire)) ? sprintf( t('This website expires after %d days.'),intval($sys_expire)) : t('This website does not expire imported content.')) . ' ' . t('The website limit takes precedence if lower than your limit.')),
|
'$expire' => array('expire',t('Expire other channel content after this many days'),$expire, t('0 or blank to use the website limit.') . ' ' . ((intval($sys_expire)) ? sprintf( t('This website expires after %d days.'),intval($sys_expire)) : t('This website does not expire imported content.')) . ' ' . t('The website limit takes precedence if lower than your limit.')),
|
||||||
'$maxreq' => array('maxreq', t('Maximum Friend Requests/Day:'), intval($channel['channel_max_friend_req']) , t('May reduce spam activity')),
|
'$maxreq' => array('maxreq', t('Maximum Friend Requests/Day:'), intval($channel['channel_max_friend_req']) , t('May reduce spam activity')),
|
||||||
'$permissions' => t('Default Access Control List (ACL)'),
|
'$permissions' => t('Default Privacy Group'),
|
||||||
'$permdesc' => t("\x28click to open/close\x29"),
|
'$permdesc' => t("\x28click to open/close\x29"),
|
||||||
'$aclselect' => populate_acl($perm_defaults, false, \Zotlabs\Lib\PermissionDescription::fromDescription(t('Use my default audience setting for the type of object published'))),
|
'$aclselect' => populate_acl($perm_defaults, false, \Zotlabs\Lib\PermissionDescription::fromDescription(t('Use my default audience setting for the type of object published'))),
|
||||||
'$allow_cid' => acl2json($perm_defaults['allow_cid']),
|
'$allow_cid' => acl2json($perm_defaults['allow_cid']),
|
||||||
|
2
boot.php
2
boot.php
@ -83,7 +83,7 @@ define ( 'DIRECTORY_FALLBACK_MASTER', 'https://gravizot.de');
|
|||||||
$DIRECTORY_FALLBACK_SERVERS = array(
|
$DIRECTORY_FALLBACK_SERVERS = array(
|
||||||
'https://hubzilla.zottel.net',
|
'https://hubzilla.zottel.net',
|
||||||
'https://my.federated.social',
|
'https://my.federated.social',
|
||||||
'https://hubzilla.nl',
|
//'https://hubzilla.nl',
|
||||||
'https://gravizot.de'
|
'https://gravizot.de'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -972,8 +972,6 @@ function notify_popup_loader(notifyType) {
|
|||||||
window.location.href=window.location.href;
|
window.location.href=window.location.href;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(data);
|
|
||||||
|
|
||||||
if(data.notify.length == 0){
|
if(data.notify.length == 0){
|
||||||
$("#nav-" + notifyType + "-menu").html(aStr[nothingnew]);
|
$("#nav-" + notifyType + "-menu").html(aStr[nothingnew]);
|
||||||
} else {
|
} else {
|
||||||
|
@ -46,7 +46,6 @@
|
|||||||
<div class="section-content-tools-wrapper">
|
<div class="section-content-tools-wrapper">
|
||||||
{{include file="field_select_grouped.tpl" field=$role}}
|
{{include file="field_select_grouped.tpl" field=$role}}
|
||||||
<div id="advanced-perm" style="display:{{if $permissions_set}}none{{else}}block{{/if}};">
|
<div id="advanced-perm" style="display:{{if $permissions_set}}none{{else}}block{{/if}};">
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<button type="button" class="btn btn-outline-secondary" data-toggle="modal" data-target="#apsModal">{{$lbl_p2macro}}</button>
|
<button type="button" class="btn btn-outline-secondary" data-toggle="modal" data-target="#apsModal">{{$lbl_p2macro}}</button>
|
||||||
</div>
|
</div>
|
||||||
@ -54,8 +53,8 @@
|
|||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
<h4 class="modal-title">{{$lbl_p2macro}}</h4>
|
<h4 class="modal-title">{{$lbl_p2macro}}</h4>
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
{{foreach $permiss_arr as $permit}}
|
{{foreach $permiss_arr as $permit}}
|
||||||
|
Reference in New Issue
Block a user