Skip to content

Commit

Permalink
Reliably catch new contributor notifications (old code can fail due t…
Browse files Browse the repository at this point in the history
…o preceeding whitespace)
  • Loading branch information
mathjazz committed Dec 3, 2024
1 parent 928e52f commit a2636c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pontoon/base/migrations/0069_notification_categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_category(notification):
return "review"

# New team contributors notifications
if desc.startswith("<a href="):
if "has made their first contribution to" in desc:
return "new_contributor"

if verb == "has sent a message in" or verb == "has sent you a message":
Expand Down

0 comments on commit a2636c1

Please sign in to comment.