fix(plugin): Only active users can and should be notified
This commit is contained in:
parent
5819a0637f
commit
239faac7dd
|
@ -102,6 +102,7 @@ class Plugin:
|
|||
db.session.commit()
|
||||
|
||||
def notify(self, user, text: str, data=None):
|
||||
if not user.deleted:
|
||||
n = Notification(text=text, data=data, plugin=self.id, user_=user)
|
||||
db.session.add(n)
|
||||
db.session.commit()
|
||||
|
|
Loading…
Reference in New Issue