mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-22 03:35:26 +00:00
29 lines
531 B
PHP
29 lines
531 B
PHP
|
<?php
|
||
|
|
||
|
namespace Zotlabs\Update;
|
||
|
|
||
|
use Zotlabs\Lib\Config;
|
||
|
|
||
|
class _1253 {
|
||
|
|
||
|
function run() {
|
||
|
$mode = PUBLIC_STREAM_NONE;
|
||
|
if (Config::Get('system','site_firehose')) {
|
||
|
$mode = PUBLIC_STREAM_SITE;
|
||
|
}
|
||
|
if (intval(Config::Get('system','disable_discover_tab',1)) === 0) {
|
||
|
$mode = PUBLIC_STREAM_FULL;
|
||
|
}
|
||
|
Config::Set('system','public_stream_mode', $mode);
|
||
|
Config::Delete('system','disable_discover_tab');
|
||
|
Config::Delete('system','site_firehose');
|
||
|
|
||
|
return UPDATE_SUCCESS;
|
||
|
}
|
||
|
|
||
|
function verify() {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
}
|