mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 16:55:18 +00:00
remove vlists app
This commit is contained in:
parent
3b6a6f444e
commit
bd49d7a311
7 changed files with 34 additions and 95 deletions
|
@ -417,7 +417,6 @@ class Apps
|
|||
'Tasks' => t('Tasks'),
|
||||
'View Bookmarks' => t('View Bookmarks'),
|
||||
'View Profile' => t('View Profile'),
|
||||
'Virtual Lists' => t('Virtual Lists'),
|
||||
'Webpages' => t('Webpages'),
|
||||
'Wiki' => t('Wiki'),
|
||||
'ZotPost' => t('ZotPost'),
|
||||
|
|
|
@ -97,18 +97,6 @@ class Libacl
|
|||
}
|
||||
}
|
||||
|
||||
if ($channel && Apps::system_app_installed($channel['channel_id'], 'Virtual Lists')) {
|
||||
$selected = (($single_group && 'connections:' . $channel['channel_hash'] === $allow_gid[0]) ? ' selected = "selected" ' : '');
|
||||
$groups .= '<option id="vg1" value="connections:' . $channel['channel_hash'] . '"' . $selected . '>' . t('My connections') . ' ' . t('(Virtual List)') . '</option>' . "\r\n";
|
||||
if (get_pconfig($channel['channel_id'], 'system', 'activitypub', get_config('system', 'activitypub', ACTIVITYPUB_ENABLED))) {
|
||||
$selected = (($single_group && 'activitypub:' . $channel['channel_hash'] === $allow_gid[0]) ? ' selected = "selected" ' : '');
|
||||
$groups .= '<option id="vg2" value="activitypub:' . $channel['channel_hash'] . '"' . $selected . '>' . t('My ActivityPub connections') . ' ' . t('(Virtual List)') . '</option>' . "\r\n";
|
||||
}
|
||||
$selected = (($single_group && 'zot:' . $channel['channel_hash'] === $allow_gid[0]) ? ' selected = "selected" ' : '');
|
||||
$groups .= '<option id="vg3" value="zot:' . $channel['channel_hash'] . '"' . $selected . '>' . t('My Nomad connections') . ' ' . t('(Virtual List)') . '</option>' . "\r\n";
|
||||
}
|
||||
|
||||
|
||||
$forums = get_forum_channels(local_channel(), 1);
|
||||
$selected = false;
|
||||
if ($forums) {
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Code\Module;
|
||||
|
||||
use Code\Lib\Apps;
|
||||
use Code\Lib\Libsync;
|
||||
use Code\Web\Controller;
|
||||
|
||||
class Vlists extends Controller
|
||||
{
|
||||
|
||||
|
||||
public function get()
|
||||
{
|
||||
|
||||
$desc = t('This app creates dynamic access lists corresponding to [1] all connections, [2] all ActivityPub protocol connections, and [3] all Nomad or Zot/6 protocol connections. These additional selections will be found within the Permissions setting tool.');
|
||||
|
||||
$text = '<div class="section-content-info-wrapper">' . $desc . '</div>';
|
||||
|
||||
$o .= $text;
|
||||
|
||||
|
||||
$text2 = '<div class="section-content-info-wrapper">' . t('This app is installed. ') . '</div>';
|
||||
|
||||
if (local_channel() && Apps::system_app_installed(local_channel(), 'Virtual Lists')) {
|
||||
$o .= $text2;
|
||||
}
|
||||
|
||||
return $o;
|
||||
}
|
||||
}
|
21
Code/Update/_1259.php
Normal file
21
Code/Update/_1259.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace Code\Update;
|
||||
|
||||
class _1259
|
||||
{
|
||||
|
||||
public function run()
|
||||
{
|
||||
// remove deprecated apps from system list
|
||||
$access = 'd82fcd79afd8783e4d493cc6fda94081295938b1ae68d7a760610c08abac124b389f37081fda7a928b3d9e864984010c9a8b61390b179a280019c74bd1d41896';
|
||||
|
||||
q("delete from app where app_id = '$access' ");
|
||||
return UPDATE_SUCCESS;
|
||||
}
|
||||
|
||||
public function verify()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -127,51 +127,19 @@ class Activity_filter
|
|||
intval(local_channel())
|
||||
);
|
||||
|
||||
if ($groups || Apps::system_app_installed(local_channel(), 'Virtual Lists')) {
|
||||
if ($groups) {
|
||||
foreach ($groups as $g) {
|
||||
if (x($_GET, 'gid')) {
|
||||
$group_active = (($_GET['gid'] == $g['id']) ? 'active' : '');
|
||||
$filter_active = 'group';
|
||||
}
|
||||
$gsub[] = [
|
||||
'label' => $g['gname'],
|
||||
'icon' => '',
|
||||
'url' => z_root() . '/' . $cmd . '/?f=&gid=' . $g['id'],
|
||||
'sel' => $group_active,
|
||||
'title' => sprintf(t('Show posts related to the %s access list'), $g['gname'])
|
||||
];
|
||||
}
|
||||
}
|
||||
if (Apps::system_app_installed(local_channel(), 'Virtual Lists')) {
|
||||
foreach ([':1', ':2', ':3'] as $l) {
|
||||
switch ($l) {
|
||||
case ':1':
|
||||
$gname = t('Connections');
|
||||
break;
|
||||
case ':2':
|
||||
$gname = t('Nomad');
|
||||
break;
|
||||
case ':3':
|
||||
$gname = t('ActivityPub');
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (x($_GET, 'gid')) {
|
||||
$group_active = (($_GET['gid'] == $l) ? 'active' : '');
|
||||
$filter_active = 'group';
|
||||
}
|
||||
|
||||
$gsub[] = [
|
||||
'label' => $gname,
|
||||
'icon' => '',
|
||||
'url' => z_root() . '/' . $cmd . '/?f=&gid=' . $l,
|
||||
'sel' => $group_active,
|
||||
'title' => sprintf(t('Show posts related to the %s access list'), $gname)
|
||||
];
|
||||
if ($groups) {
|
||||
foreach ($groups as $g) {
|
||||
if (x($_GET, 'gid')) {
|
||||
$group_active = (($_GET['gid'] == $g['id']) ? 'active' : '');
|
||||
$filter_active = 'group';
|
||||
}
|
||||
$gsub[] = [
|
||||
'label' => $g['gname'],
|
||||
'icon' => '',
|
||||
'url' => z_root() . '/' . $cmd . '/?f=&gid=' . $g['id'],
|
||||
'sel' => $group_active,
|
||||
'title' => sprintf(t('Show posts related to the %s access list'), $g['gname'])
|
||||
];
|
||||
}
|
||||
$tabs[] = [
|
||||
'id' => 'privacy_groups',
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
version: 1
|
||||
url: $baseurl/vlists
|
||||
requires: local_channel
|
||||
name: Virtual Lists
|
||||
photo: icon:user-secret
|
||||
categories: Networking, Productivity
|
2
boot.php
2
boot.php
|
@ -27,7 +27,7 @@ require_once('version.php');
|
|||
|
||||
define ( 'PLATFORM_NAME', 'streams' );
|
||||
|
||||
define ( 'DB_UPDATE_VERSION', 1258 );
|
||||
define ( 'DB_UPDATE_VERSION', 1259 );
|
||||
define ( 'ZOT_REVISION', '11.0' );
|
||||
|
||||
define ( 'PLATFORM_ARCHITECTURE', 'zap' );
|
||||
|
|
Loading…
Reference in a new issue