Ladsgroup has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/206775

Change subject: Disable cleanUpLinks in cosmetic_changes.py in Persian language 
wikis
......................................................................

Disable cleanUpLinks in cosmetic_changes.py in Persian language wikis

Community thinks this function has too many issues.
I do this upon request of User:Yamaha5

Change-Id: I4f40c7a89a6fd698009a6290e18948e3924f4f78
---
M cosmetic_changes.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/compat 
refs/changes/75/206775/1

diff --git a/cosmetic_changes.py b/cosmetic_changes.py
index b15c226..4e7fba8 100644
--- a/cosmetic_changes.py
+++ b/cosmetic_changes.py
@@ -156,7 +156,9 @@
         text = self.fixSelfInterwiki(text)
         text = self.standardizePageFooter(text)
         text = self.fixSyntaxSave(text)
-        text = self.cleanUpLinks(text)
+        if self.site.lang != 'fa':
+            # Per community discussion, this one is not allowed
+            text = self.cleanUpLinks(text)
         text = self.cleanUpSectionHeaders(text)
         text = self.putSpacesInLists(text)
         text = self.translateAndCapitalizeNamespaces(text)

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4f40c7a89a6fd698009a6290e18948e3924f4f78
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <ladsgr...@gmail.com>

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

Reply via email to