mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 07:15:13 +00:00
lockview updates
This commit is contained in:
parent
009e457f36
commit
cea5b03abc
3 changed files with 31 additions and 7 deletions
|
@ -58,7 +58,7 @@ class Lockview extends \Zotlabs\Web\Controller {
|
|||
|
||||
$item = $r[0];
|
||||
|
||||
//we have different naming in in menu_item table and chatroom table
|
||||
// we have different naming in in menu_item table and chatroom table
|
||||
switch($type) {
|
||||
case 'menu_item':
|
||||
$uid = $item['mitem_channel_id'];
|
||||
|
@ -70,11 +70,29 @@ class Lockview extends \Zotlabs\Web\Controller {
|
|||
$uid = $item['uid'];
|
||||
break;
|
||||
}
|
||||
|
||||
if($uid != local_channel()) {
|
||||
echo '<div class="dropdown-item">' . t('Remote privacy information not available.') . '</div>';
|
||||
logger('type: ' . $type);
|
||||
if ($type === 'item') {
|
||||
$recips = get_iconfig($item['id'],'activitypub','recips');
|
||||
if ($recips) {
|
||||
$o = '<div class="dropdown-item">' . t('Visible to:') . '</div>';
|
||||
$l = [];
|
||||
if (isset($recips['to'])) {
|
||||
if (! is_array($recips['to'])) {
|
||||
$recips['to'] = [ $recips['to'] ];
|
||||
}
|
||||
$l = array_merge($l,$recips['to']);
|
||||
}
|
||||
if (isset($recips['cc'])) {
|
||||
if (! is_array($recips['cc'])) {
|
||||
$recips['cc'] = [ $recips['cc'] ];
|
||||
}
|
||||
$l = array_merge($l,$recips['cc']);
|
||||
}
|
||||
echo $o . implode(', ',$l);
|
||||
killme();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(intval($item['item_private']) && (! strlen($item['allow_cid'])) && (! strlen($item['allow_gid']))
|
||||
&& (! strlen($item['deny_cid'])) && (! strlen($item['deny_gid']))) {
|
||||
|
|
|
@ -603,10 +603,10 @@ class Profiles extends Controller {
|
|||
$channel = App::get_channel();
|
||||
|
||||
if($namechanged && $is_default) {
|
||||
$r = q("UPDATE xchan SET xchan_name = '%s', xchan_name_date = '%s' WHERE xchan_url = '%s'",
|
||||
$r = q("UPDATE xchan SET xchan_name = '%s', xchan_name_date = '%s' WHERE xchan_hash = '%s'",
|
||||
dbesc($name),
|
||||
dbesc(datetime_convert()),
|
||||
dbesc(z_root() . '/channel/' . $channel['channel_address'])
|
||||
dbesc($channel['xchan_hash'])
|
||||
);
|
||||
$r = q("UPDATE channel SET channel_name = '%s' WHERE channel_hash = '%s'",
|
||||
dbesc($name),
|
||||
|
|
|
@ -1508,6 +1508,12 @@ blockquote {
|
|||
border-radius: $radius;
|
||||
}
|
||||
|
||||
|
||||
.wall-item-lock .dropdown-menu {
|
||||
min-width: 20rem;
|
||||
}
|
||||
|
||||
|
||||
.dropdown-item {
|
||||
color: $font_colour;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue