Skip to content

Commit

Permalink
Merge pull request #177 from NixOS/new-captcha
Browse files Browse the repository at this point in the history
New captcha
  • Loading branch information
Lassulus authored Feb 22, 2025
2 parents 042e80e + d9a07a8 commit 9c10424
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/nixos-wiki/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ in
extraConfig = ''
# docs https://www.mediawiki.org/wiki/Extension:QuestyCaptcha
$wgCaptchaQuestions = [
"What Linux distribution is this wiki about?" => [ 'nixos', 'NixOS', 'NIXOS', 'Nixos' ],
"What is the package manager of NixOS called?" => [ 'Nix', 'nix', 'NIX' ],
"What is the output of this command: nix-instantiate --raw --eval --expr 'builtins.hashString \"sha256\" \"NixOS wiki\"' ?" => "62e65110a5a6fa4f08256f7d9ee3461412babb37dc0955531b79dcf9732c9c91"
];
wfLoadExtensions([ 'ConfirmEdit/QuestyCaptcha' ]);
Expand Down Expand Up @@ -176,7 +175,7 @@ in
$wgEnotifUserTalk = true;
# Block spam by regex
$wgSpamRegex = ["/seo (software|tools)|pornstars|casino|gambling|viagra/i"];
$wgSpamRegex = ["/seo (software|tools)|adult toys|pornstars|casino|gambling|viagra/i"];
'';
};

Expand Down

0 comments on commit 9c10424

Please sign in to comment.