News "blocked" field on the gserver table

This commit is contained in:
Michael 2023-01-17 17:25:19 +00:00
parent d63aca97b8
commit 356a2a9a5a
14 changed files with 140 additions and 15 deletions

View file

@ -75,6 +75,8 @@ class Add extends BaseModeration
// Add new item to blocklist
$this->blocklist->addPattern($pattern, trim($request['reason']));
Worker::add(Worker::PRIORITY_LOW, 'UpdateBlockedServers');
$this->systemMessages->addInfo($this->t('Server domain pattern added to the blocklist.'));
if (!empty($request['purge'])) {