Skip to content

Commit 61545c1

Browse files
committed
change post by email notice wording
1 parent e5a09ea commit 61545c1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

main/templates/main/guides_postbyemail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h1>Post by email</h1>
1313

1414
{% if request.user.is_authenticated and not request.user.is_premium and not request.user.is_grandfathered %}
1515
<p>
16-
This is a premium feature. <a href="{% url 'billing_overview' %}">Upgrade to Premium</a> to use it.
16+
This is a premium feature. <a href="{% url 'billing_overview' %}">Subscribe to Premium</a> to use it.
1717
</p>
1818
{% endif %}
1919

main/tests/test_blog.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def test_postmark_webhook_cannot_post_to_another_users_blog(self):
553553
self.assertEqual(len(mail.outbox), 0)
554554

555555
def test_postmark_webhook_non_premium_user_cannot_post(self):
556-
"""Non-premium users should receive an upgrade email instead of creating a post."""
556+
"""Non-premium users should receive a subscribe email instead of creating a post."""
557557
non_premium_user = models.User.objects.create(
558558
username="freemium", email="[email protected]", is_premium=False
559559
)
@@ -575,14 +575,14 @@ def test_postmark_webhook_non_premium_user_cannot_post(self):
575575
self.assertEqual(response.status_code, 200)
576576
# no post created
577577
self.assertFalse(models.Post.objects.exists())
578-
# upgrade email sent
578+
# subscribe to premium email sent
579579
self.assertEqual(len(mail.outbox), 1)
580580
self.assertEqual(mail.outbox[0].to, ["[email protected]"])
581581
self.assertIn("premium feature", mail.outbox[0].body.lower())
582582
self.assertIn("https://mataroa.blog/billing/overview/", mail.outbox[0].body)
583583

584584
def test_postmark_webhook_non_premium_user_cannot_create_draft(self):
585-
"""Non-premium users should receive an upgrade email when trying to create a draft."""
585+
"""Non-premium users should receive a subscribe email when trying to create a draft."""
586586
non_premium_user = models.User.objects.create(
587587
username="freemium", email="[email protected]", is_premium=False
588588
)
@@ -604,7 +604,7 @@ def test_postmark_webhook_non_premium_user_cannot_create_draft(self):
604604
self.assertEqual(response.status_code, 200)
605605
# no post created
606606
self.assertFalse(models.Post.objects.exists())
607-
# upgrade email sent
607+
# subscribe to premium email sent
608608
self.assertEqual(len(mail.outbox), 1)
609609
self.assertEqual(mail.outbox[0].to, ["[email protected]"])
610610
self.assertIn("premium feature", mail.outbox[0].body.lower())

main/views/general.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ def postmark_webhook(request):
12751275
# check if user is premium
12761276
if not user.has_premium_features:
12771277
logger.warning(f"Post by email attempted by non-premium user: {user.username}")
1278-
body = "This is a premium feature. Please upgrade to Premium to use it. https://mataroa.blog/billing/overview/"
1278+
body = "This is a premium feature. Subscribe to Premium to use it: https://mataroa.blog/billing/overview/"
12791279
extra_headers = {}
12801280
if message_id:
12811281
extra_headers["In-Reply-To"] = message_id

0 commit comments

Comments
 (0)