|
|
@ -3,7 +3,7 @@ |
|
|
|
# |
|
|
|
# redfam.py |
|
|
|
# |
|
|
|
# Copyright 2017 Jonathan Golder <jonathan@golderweb.de> |
|
|
|
# Copyright 2018 Jonathan Golder <jonathan@golderweb.de> |
|
|
|
# |
|
|
|
# This program is free software; you can redistribute it and/or modify |
|
|
|
# it under the terms of the GNU General Public License as published by |
|
|
@ -594,8 +594,21 @@ class RedFamWorker( RedFam ): |
|
|
|
except Break: |
|
|
|
break |
|
|
|
|
|
|
|
# Follow moved pages |
|
|
|
if self.article_has_status( "redirect", title=article ): |
|
|
|
try: |
|
|
|
page = page.moved_target() |
|
|
|
except pywikibot.exceptions.NoMoveTarget: |
|
|
|
pass |
|
|
|
|
|
|
|
# Exclude Users & User Talkpage |
|
|
|
if page.namespace() == 2 or page.namespace() == 3: |
|
|
|
self.article_add_status( "user", title=article ) |
|
|
|
continue |
|
|
|
|
|
|
|
# Toggle talkpage |
|
|
|
if talkpages: |
|
|
|
if talkpages and not page.isTalkPage() or\ |
|
|
|
not talkpages and page.isTalkPage(): |
|
|
|
page = page.toggleTalkPage() |
|
|
|
|
|
|
|
# Add reference to redfam to pages |
|
|
|