Browse Source

Follow redirects when sending notices.

pull/10/head
Ben Kurtovic 11 years ago
parent
commit
3e1a26ed82
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tasks/drn_clerkbot.py

+ 1
- 1
tasks/drn_clerkbot.py View File

@@ -646,7 +646,7 @@ class DRNClerkBot(Task):
target, template = notice.target, notice.template target, template = notice.target, notice.template
log = u"Trying to notify [[{0}]] with '{1}'" log = u"Trying to notify [[{0}]] with '{1}'"
self.logger.debug(log.format(target, template)) self.logger.debug(log.format(target, template))
page = site.get_page(target)
page = site.get_page(target, follow_redirects=True)
if page.namespace == constants.NS_USER_TALK: if page.namespace == constants.NS_USER_TALK:
user = site.get_user(target.split(":", 1)[1]) user = site.get_user(target.split(":", 1)[1])
if not user.exists and not user.is_ip: if not user.exists and not user.is_ip:


Loading…
Cancel
Save