mirror of
https://github.com/friendica/friendica
synced 2025-04-27 23:50:10 +00:00
Add tests & default reason
This commit is contained in:
parent
e25f269aab
commit
55d2473ec2
3 changed files with 284 additions and 87 deletions
|
@ -16,6 +16,8 @@ use Friendica\Core\Config\Configuration;
|
|||
*/
|
||||
class BlockedServers extends Console
|
||||
{
|
||||
const DEFAULT_REASON = 'blocked';
|
||||
|
||||
protected $helpOptions = ['h', 'help', '?'];
|
||||
|
||||
protected function getHelp()
|
||||
|
@ -97,7 +99,7 @@ HELP;
|
|||
}
|
||||
}
|
||||
|
||||
$reason = (count($this->args) === 3) ? $this->getArgument(2) : 'blocked';
|
||||
$reason = (count($this->args) === 3) ? $this->getArgument(2) : self::DEFAULT_REASON;
|
||||
|
||||
$blocklist[] = [
|
||||
'domain' => $domain,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue