use created_by_partner

This commit is contained in:
Adrià Casajús
2026-04-02 14:50:55 +02:00
parent f7cb621d04
commit a03beef4c5
+1 -1
View File
@@ -74,7 +74,7 @@ VERP_HMAC_ALGO = "sha3-224"
def get_noreply_address(user=None) -> str:
"""Full RFC 5322 formatted noreply address, e.g. '"SimpleLogin (noreply)" <noreply@sl.io>'"""
if user and PartnerUser.get_by(user_id=user.id):
if user and user.created_by_partner:
return config.PARTNER_NOREPLY
return config.NOREPLY