mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 16:28:01 -05:00
Fix award claim POST url
This commit is contained in:
@@ -571,8 +571,10 @@ class AwardClaimToken(ConsumableToken):
|
||||
uid=uid,
|
||||
)
|
||||
|
||||
def claim_url(self):
|
||||
return "http://%s/awards/claim/%s" % (g.domain, self._id)
|
||||
def post_url(self):
|
||||
# Relative URL; should be used on an on-site form
|
||||
return "/awards/claim/%s" % self._id
|
||||
|
||||
def confirm_url(self):
|
||||
# Full URL; for emailing, PM'ing, etc.
|
||||
return "http://%s/awards/confirm/%s" % (g.domain, self._id)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
<%namespace file="trophycase.html" import="trophy_info" />
|
||||
|
||||
<form action="${thing.token.claim_url()}" method="post"
|
||||
<form action="${thing.token.post_url()}" method="post"
|
||||
class="centered confirm-award-claim">
|
||||
|
||||
${unsafe(safemarkdown(_("# Claim this award for /u/%s? #") % thing.user))}
|
||||
|
||||
Reference in New Issue
Block a user