Skip to content

Commit

Permalink
protect: added noticeboard LTA preset (wikimedia-gadgets#2095)
Browse files Browse the repository at this point in the history
  • Loading branch information
rustykitty committed Dec 8, 2024
1 parent e7d4c6c commit 599cf64
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion modules/twinkleprotect.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,8 @@ Twinkle.protect.protectionTypes = [
{ label: 'Adding unsourced content (semi)', value: 'pp-semi-unsourced' },
{ label: 'BLP policy violations (semi)', value: 'pp-semi-blp' },
{ label: 'Sockpuppetry (semi)', value: 'pp-semi-sock' },
{ label: 'User talk of blocked user (semi)', value: 'pp-semi-usertalk' }
{ label: 'User talk of blocked user (semi)', value: 'pp-semi-usertalk' },
{ label: 'Noticeboard LTA (semi)', value: 'pp-sock-noticeboard' }
]
},
{
Expand Down Expand Up @@ -788,6 +789,13 @@ Twinkle.protect.protectionPresetsInfo = {
move: 'sysop',
reason: '[[WP:PP#Content disputes|Edit warring / content dispute]]'
},
'pp-sock-noticeboard': {
edit: 'autoconfirmed',
move: 'autoconfirmed',
expiry: '2 hours',
reason: 'Persistent [[WP:Sock puppetry|sock puppetry]]',
template: 'pp-sock'
},
'pp-vandalism': {
edit: 'sysop',
move: 'sysop',
Expand Down Expand Up @@ -1244,6 +1252,7 @@ Twinkle.protect.callback.evaluate = function twinkleprotectCallbackEvaluate(e) {
case 'pp-30-500':
typename = 'extended confirmed protection';
break;
case 'pp-sock-noticeboard':
case 'pp-semi-vandalism':
case 'pp-semi-disruptive':
case 'pp-semi-unsourced':
Expand Down Expand Up @@ -1315,6 +1324,7 @@ Twinkle.protect.callback.evaluate = function twinkleprotectCallbackEvaluate(e) {
case 'pp-semi-usertalk':
typereason = 'Inappropriate use of user talk page while blocked';
break;
case 'pp-noticeboard-sock':
case 'pp-semi-sock':
case 'pp-30-500-sock':
typereason = 'Persistent [[WP:SOCK|sockpuppetry]]';
Expand Down

0 comments on commit 599cf64

Please sign in to comment.