diff --git a/files/helpers/const.py b/files/helpers/const.py index 55701bd25..9b8a1b4fb 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -88,8 +88,6 @@ The only proven method of prevention is the COVID-19 vaccine, paired with approp Thank you.""" -BASED_MSG = "@{username}'s Based Count has increased by 1. Their Based Count is now {basedcount}.\n\nPills: {pills}" - if SITE == 'rdrama.net': NOTIFICATIONS_ACCOUNT = 1046 AUTOJANNY_ACCOUNT = 2360 diff --git a/files/routes/comments.py b/files/routes/comments.py index 1b23a76fa..ebc588853 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -282,11 +282,14 @@ def api_comment(v): if level == 1: basedguy = get_account(c.post.author_id) else: basedguy = get_account(c.parent_comment.author_id) basedguy.basedcount += 1 - if pill: basedguy.pills += f"{pill.group(1)}, " + if pill: + if basedguy.pills: basedguy.pills += f", {pill.group(1)}" + else: basedguy.pills += f"{pill.group(1)}" g.db.add(basedguy) - body2 = BASED_MSG.format(username=basedguy.username, basedcount=basedguy.basedcount, pills=basedguy.pills) - + body2 = f"@{basedguy.username}'s Based Count has increased by 1. Their Based Count is now {basedguy.basedcount}." + if basedguy.pills: body2 += f"\n\nPills: {basedguy.pills}"" + body_md = CustomRenderer().render(mistletoe.Document(body2)) body_based_html = sanitize(body_md) diff --git a/files/templates/comments.html b/files/templates/comments.html index 505f073c5..9c98f8ecf 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -439,7 +439,7 @@ {% endif %} Context - Copy link + Copy link {% if v %} Report {% endif %} @@ -598,7 +598,7 @@ Unsave {% endif %} - Copy link + Copy link Context diff --git a/files/templates/submission.html b/files/templates/submission.html index 7c89209e9..013f9924d 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -616,7 +616,7 @@ Give Award {% endif %} - Copy link + Copy link {% if v %} Subscribe @@ -749,7 +749,7 @@ - Copy link + Copy link {% if v %}
  • diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index 1d2ecdb88..1f3f2907f 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -246,7 +246,7 @@ Give Award {% endif %} - Copy link + Copy link {% if v %} Subscribe @@ -334,7 +334,7 @@
  • - + {% if p.realbody(v) and request.path != "/changelog"%}