fix: don't notify links if not public
This commit is contained in:
parent
e1f20f7305
commit
d2d669b720
1 changed files with 3 additions and 0 deletions
|
|
@ -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>"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue