streams/Zotlabs/Update/_1228.php

23 lines
386 B
PHP
Raw Normal View History

2019-02-28 23:14:22 +00:00
<?php
namespace Zotlabs\Update;
use Zotlabs\Lib\PConfig;
2021-12-02 23:02:31 +00:00
class _1228
{
2019-02-28 23:14:22 +00:00
2021-12-02 23:02:31 +00:00
public function run()
{
2019-02-28 23:14:22 +00:00
2021-12-02 23:02:31 +00:00
$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);
}
}
2019-02-28 23:14:22 +00:00
2021-12-02 23:02:31 +00:00
return UPDATE_SUCCESS;
}
2019-02-28 23:14:22 +00:00
}