image for notif
This commit is contained in:
@@ -151,11 +151,11 @@ class PushSubscription(models.Model):
|
||||
def __str__(self):
|
||||
return f'{self.user} push'
|
||||
|
||||
def send_notif(self, title, body):
|
||||
def send_notif(self, title, body, icon=''):
|
||||
payload = {
|
||||
"title": title,
|
||||
"body": body,
|
||||
"icon": ''
|
||||
"icon": icon
|
||||
}
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user