From 1041016b2501f43749a325f986729ebede54facb Mon Sep 17 00:00:00 2001 From: lizerk Date: Mon, 9 Mar 2026 10:09:24 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D1=8B=20=D0=BE=D1=81=D1=82=D0=B0=D0=B2=D1=88?= =?UTF-8?q?=D0=B8=D0=B5=D1=81=D1=8F=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5?= =?UTF-8?q?=D1=82=D1=80=D0=B8=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=BD=D1=8B?= =?UTF-8?q?=D0=B5=20URL-=D1=8B=20=D0=B2=20task=5Fbase.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - /calendar/?event={id} → /calendar - /feed/?post={id} → / Теперь все URL-ы во всех уведомлениях ведут на существующие страницы --- backend/notifications/task_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/notifications/task_base.py b/backend/notifications/task_base.py index f30ad0cc..b2091fa5 100644 --- a/backend/notifications/task_base.py +++ b/backend/notifications/task_base.py @@ -393,7 +393,7 @@ class EventNotificationProcessor(BaseNotificationProcessor): title=f'Новое событие: {event.title}', message=truncate_text(event.description or '', 150), content_object=event, - action_url=f'/calendar/?event={event.id}', + action_url='/calendar', metadata={ 'event_id': event.id, 'event_title': event.title, @@ -444,7 +444,7 @@ class PostNotificationProcessor(BaseNotificationProcessor): title=f'{post.title}', message=truncate_text(post.body, 200), content_object=post, - action_url=f'/feed/?post={post.id}', + action_url='/', metadata={ 'post_id': post.id, 'author_id': post.author.id if post.author else None,