Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protect: add 2-hour noticeboard LTA preset #2119

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions 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,12 @@ Twinkle.protect.protectionPresetsInfo = {
move: 'sysop',
reason: '[[WP:PP#Content disputes|Edit warring / content dispute]]'
},
'pp-sock-noticeboard': {
edit: 'autoconfirmed',
expiry: '2 hours',
reason: 'Persistent [[WP:Sock puppetry|sock puppetry]]',
template: 'pp-sock'
},
'pp-vandalism': {
edit: 'sysop',
move: 'sysop',
Expand Down Expand Up @@ -864,14 +871,12 @@ Twinkle.protect.protectionPresetsInfo = {
},
'pp-semi-usertalk': {
edit: 'autoconfirmed',
move: 'autoconfirmed',
expiry: 'infinity',
reason: '[[WP:PP#Talk-page protection|Inappropriate use of user talk page while blocked]]',
template: 'pp-usertalk'
},
'pp-semi-template': { // removed for now
edit: 'autoconfirmed',
move: 'autoconfirmed',
expiry: 'infinity',
reason: '[[WP:High-risk templates|Highly visible template]]',
template: 'pp-template'
Expand Down Expand Up @@ -1244,6 +1249,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 +1321,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
Loading