fixing login cover redirects

This commit is contained in:
Jeremy Edberg
2008-07-23 12:04:53 -07:00
parent 440f778bdd
commit 7b937ef72f

View File

@@ -618,15 +618,15 @@ class VReason(Validator):
return ('redirect', dest)
if reason.startswith('vote_'):
fullname = reason[5:]
t = Thing._by_fullname(fullname)
t = Thing._by_fullname(fullname, data=True)
return ('redirect', t.permalink)
elif reason.startswith('share_'):
fullname = reason[6:]
t = Thing._by_fullname(fullname)
t = Thing._by_fullname(fullname, data=True)
return ('redirect', t.permalink)
elif reason.startswith('reply_'):
fullname = reason[6:]
t = Thing._by_fullname(fullname)
t = Thing._by_fullname(fullname, data=True)
return ('redirect', t.permalink)
elif reason.startswith('sr_change_'):
sr_list = reason[10:].split(',')