From ba1f48c942b9336a6d7e20fcfbdb0659e5477e30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C=20=D0=9D=D0=B0=D0=B4=D0=B5?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Wed, 3 Dec 2025 13:48:31 +0300 Subject: [PATCH] =?UTF-8?q?fix=20=D1=81=D1=81=D1=8B=D0=BB=D0=BE=D0=BA=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B0=D0=B2=D1=82=D0=BE=D1=80=D0=BE=D0=B2=20?= =?UTF-8?q?=D0=B2=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D1=8F=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/static/js/components/feedComments.js | 2 +- backend/static/js/components/postDetailModal.js | 2 +- backend/static/js/components/postDetailModal.old.js | 2 +- backend/static/js/components/requestCommentsHandler.js | 2 +- backend/test_notification_create.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/static/js/components/feedComments.js b/backend/static/js/components/feedComments.js index eb7a0e04..2daf670f 100644 --- a/backend/static/js/components/feedComments.js +++ b/backend/static/js/components/feedComments.js @@ -375,7 +375,7 @@ const authorName = commentData.author?.full_name || 'Сотрудник'; const authorId = commentData.author?.id; const authorLink = authorId - ? `/employees/employee/${authorId}/` + ? `/employees/${authorId}/` : '#'; const commentDate = formatDate(commentData.created_at); diff --git a/backend/static/js/components/postDetailModal.js b/backend/static/js/components/postDetailModal.js index ebf7441a..71ad56d5 100644 --- a/backend/static/js/components/postDetailModal.js +++ b/backend/static/js/components/postDetailModal.js @@ -321,7 +321,7 @@ const authorId = getAuthorId(comment.author); if (authorId) { - html += `${escapeHtml(authorName)}`; + html += `${escapeHtml(authorName)}`; } else { html += `${escapeHtml(authorName)}`; } diff --git a/backend/static/js/components/postDetailModal.old.js b/backend/static/js/components/postDetailModal.old.js index 61186fc7..936e89b1 100644 --- a/backend/static/js/components/postDetailModal.old.js +++ b/backend/static/js/components/postDetailModal.old.js @@ -202,7 +202,7 @@ const authorId = comment.author?.id; if (authorId) { - html += `${authorName}`; + html += `${authorName}`; } else { html += `${authorName}`; } diff --git a/backend/static/js/components/requestCommentsHandler.js b/backend/static/js/components/requestCommentsHandler.js index 6e3137bf..0b27add0 100644 --- a/backend/static/js/components/requestCommentsHandler.js +++ b/backend/static/js/components/requestCommentsHandler.js @@ -39,7 +39,7 @@ export function initRequestCommentsHandler(options) { (comment.author.full_name || comment.author.display_name || comment.author.username)) || '—'; const authorId = comment.author?.id; const authorLink = authorId - ? `/employees/employee/${authorId}/` + ? `/employees/${authorId}/` : '#'; const commentDate = esc(comment.created_at || ''); diff --git a/backend/test_notification_create.py b/backend/test_notification_create.py index 2cc9b185..45c817a8 100644 --- a/backend/test_notification_create.py +++ b/backend/test_notification_create.py @@ -16,7 +16,7 @@ from notifications.services import NotificationService def main(): """Создать тестовое уведомление""" # Получаем первого пользователя - user = Employee.objects.first() + user = Employee.objects.filter(id=1).first() if not user: print("❌ Нет пользователей в системе!")