jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/327707 )

Change subject: Set default rate limits
......................................................................


Set default rate limits

Per Krinkle's recommendation in T133109#2434890.

For new users and IPs, it's 10 new short codes in 2 minutes.
For normal users, it's 50 new short codes in 2 minutes.

This only applies to when creating a new short code, so it shouldn't
affect most users who will typically visit articles that already have
been shortened.

Bug: T133109
Change-Id: I60a34c74ec037857d2a2782796a2293735df815e
---
M extension.json
1 file changed, 7 insertions(+), 0 deletions(-)

Approvals:
  Tim Starling: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/extension.json b/extension.json
index 8f8892f..70a2533 100644
--- a/extension.json
+++ b/extension.json
@@ -47,6 +47,13 @@
                        "i18n"
                ]
        },
+       "RateLimits": {
+               "urlshortcode": {
+                       "ip": [ 10, 120 ],
+                       "newbie": [ 10, 120 ],
+                       "user": [ 50, 120 ]
+               }
+       },
        "ResourceModules": {
                "ext.urlShortener.special": {
                        "scripts": [

-- 
To view, visit https://gerrit.wikimedia.org/r/327707
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I60a34c74ec037857d2a2782796a2293735df815e
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/UrlShortener
Gerrit-Branch: master
Gerrit-Owner: Legoktm <lego...@member.fsf.org>
Gerrit-Reviewer: Jalexander <jalexan...@wikimedia.org>
Gerrit-Reviewer: Krinkle <krinklem...@gmail.com>
Gerrit-Reviewer: Tim Starling <tstarl...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to