浏览代码

Follow redirects when sending notices.

pull/10/head
Ben Kurtovic 11 年前
父节点
当前提交
3e1a26ed82
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      tasks/drn_clerkbot.py

+ 1
- 1
tasks/drn_clerkbot.py 查看文件

@@ -646,7 +646,7 @@ class DRNClerkBot(Task):
target, template = notice.target, notice.template
log = u"Trying to notify [[{0}]] with '{1}'"
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:
user = site.get_user(target.split(":", 1)[1])
if not user.exists and not user.is_ip:


正在加载...
取消
保存