no email
This commit is contained in:
parent
6e75621dfb
commit
9e58091a04
@ -54,8 +54,8 @@ class Command(MessagingSupport):
|
|||||||
message = f"Пользователь {from_user.username} хочет добавить тебя в друзья"
|
message = f"Пользователь {from_user.username} хочет добавить тебя в друзья"
|
||||||
if user.userinfo.notification_telegram:
|
if user.userinfo.notification_telegram:
|
||||||
yield "telegram", {"chat_id": user.userinfo.telegram_chat_id, "text": message}
|
yield "telegram", {"chat_id": user.userinfo.telegram_chat_id, "text": message}
|
||||||
if user.userinfo.notification_email:
|
# if user.userinfo.notification_email:
|
||||||
yield "email", {"subject": "Новая заявка в друзья", "message": message, "email": user.email}
|
# yield "email", {"subject": "Новая заявка в друзья", "message": message, "email": user.email}
|
||||||
|
|
||||||
def handle_friends_accept(self, payload):
|
def handle_friends_accept(self, payload):
|
||||||
user = User.objects.get(id=payload['to_user'])
|
user = User.objects.get(id=payload['to_user'])
|
||||||
|
Loading…
Reference in New Issue
Block a user