fix: don't notify links if not public

This commit is contained in:
Ankush Menat 2024-01-31 18:09:20 +05:30
parent e1f20f7305
commit d2d669b720

View file

@ -28,6 +28,9 @@ class Note(Document):
# expire this notification in a week (default)
self.expire_notification_on = frappe.utils.add_days(self.creation, 7)
if not self.public and self.notify_on_login:
self.notify_on_login = 0
if not self.content:
self.content = "<span></span>"