From 8773cbe7cd7ee8a1c4fbc62534afc61da8d8012f Mon Sep 17 00:00:00 2001 From: lizerk Date: Tue, 10 Mar 2026 14:20:56 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/communications/serialization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/communications/serialization.py b/backend/communications/serialization.py index 05540eab..8651324a 100644 --- a/backend/communications/serialization.py +++ b/backend/communications/serialization.py @@ -34,7 +34,7 @@ def serialize_message(m) -> dict: "content": m.content, "author_id": author.id if author else None, "author_name": author_name, - "author_url": reverse("employees:employee_detail", args=[author.id]) if author else "", + "author_url": f"/api/v1/employees/{author.id}/" if author else "", "avatar": avatar, "created": m.created_at.strftime("%d.%m.%Y %H:%M"), "created_ts": int(m.created_at.timestamp() * 1000),