0.12.47 fix push messages

This commit is contained in:
SDE
2024-05-05 13:37:39 +03:00
parent 474bb9f02e
commit f8caafb2a9
3 changed files with 26 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ def get_inter_http_respose(template_obj, context_Dict, request):
title = getattr(context_Dict['page'], 'title', None)
text = getattr(context_Dict['page'], 'description', None)
# if text and title and not request.user.is_anonymous:
# send_push(user=request.user, title=title, text=text)
if text and title and not request.user.is_anonymous:
send_push(user=request.user, title=title, text=text)
return HttpResponse(template_obj.render(context_Dict, request))