From b0a34ff7d61692faa605b806298d70282f55a0a2 Mon Sep 17 00:00:00 2001 From: vnglnk <128087718+holotsvan@users.noreply.github.com> Date: Mon, 9 Dec 2024 13:10:53 +0200 Subject: [PATCH] change message to secondMessage (#7897) --- service/src/main/java/greencity/service/EventServiceImpl.java | 1 + service/src/main/resources/notification.properties | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/service/src/main/java/greencity/service/EventServiceImpl.java b/service/src/main/java/greencity/service/EventServiceImpl.java index 66243ae4d..78a8dc95d 100644 --- a/service/src/main/java/greencity/service/EventServiceImpl.java +++ b/service/src/main/java/greencity/service/EventServiceImpl.java @@ -860,6 +860,7 @@ private void sendEventLikeNotification(User targetUser, UserVO actionUser, Long .newsId(eventId) .newsTitle(event.getTitle()) .notificationType(NotificationType.EVENT_LIKE) + .secondMessageText(event.getTitle()) .isLike(true) .build(); userNotificationService.createOrUpdateLikeNotification(likeNotificationDto); diff --git a/service/src/main/resources/notification.properties b/service/src/main/resources/notification.properties index 1e3facddd..5ff3ce434 100644 --- a/service/src/main/resources/notification.properties +++ b/service/src/main/resources/notification.properties @@ -39,7 +39,7 @@ EVENT_NAME_UPDATED=Event {message} was updated. New name is {secondMessage}. EVENT_UPDATED_TITLE=Event was updated EVENT_UPDATED=Event {message} was updated. EVENT_LIKE_TITLE=Your event received a like. -EVENT_LIKE=Event {message} received a like from {user}. +EVENT_LIKE=Event «{secondMessage}» received a like from {user}. FRIEND_REQUEST_ACCEPTED_TITLE=Your friend request was accepted FRIEND_REQUEST_ACCEPTED={user} accepted your friend request.