mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Replace _ in username to avoid markdown issues
When gifting a user gold, it displays their username using markdown, so any underscores need to be replaced first to avoid having part of a username between them interpreted as italics. Fixes issue #714
This commit is contained in:
@@ -1935,7 +1935,8 @@ class GoldPayment(Templated):
|
||||
if not clone_template:
|
||||
summary = format % dict(
|
||||
amount=Score.somethings(months, "month"),
|
||||
recipient=recipient and recipient.name,
|
||||
recipient=recipient and
|
||||
recipient.name.replace('_', '_'),
|
||||
)
|
||||
else:
|
||||
# leave the replacements to javascript
|
||||
|
||||
Reference in New Issue
Block a user