mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-21 19:35:24 +00:00
23 lines
316 B
PHP
23 lines
316 B
PHP
|
<?php
|
||
|
|
||
|
namespace Zotlabs\Update;
|
||
|
|
||
|
use Zotlabs\Lib\PConfig;
|
||
|
|
||
|
class _1228 {
|
||
|
|
||
|
function run() {
|
||
|
|
||
|
$r = q("select channel_id from channel where true");
|
||
|
if ($r) {
|
||
|
foreach ($r as $rv) {
|
||
|
PConfig::Set($rv['channel_id'],'perm_limits','moderated', (string) PERMS_SPECIFIC);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return UPDATE_SUCCESS;
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|