Skip to content

Commit

Permalink
Merge pull request #179 from Team-Capple/feat/#178/notificationContent
Browse files Browse the repository at this point in the history
feat: #178 원격 μ•Œλ¦Ό 양식 λ³€κ²½
  • Loading branch information
jaewonLeeKOR authored Sep 24, 2024
2 parents edf5e35 + 48a934c commit 5b8940c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ public BoardCommentNotificationBody(NotificationType type, Board board, BoardCom
this.aps = Aps.builder().threadId("board-" + board.getId())
.alert(Aps.Alert.builder()
.title(type.getTitle())
.subtitle(boardComment.getContent())
.body(board.getContent())
.body(boardComment.getContent())
.build())
.build();
this.boardId = board.getId().toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
@Getter
@RequiredArgsConstructor
public enum NotificationType {
BOARD_HEART("λˆ„κ΅°κ°€ λ‚΄ κ²Œμ‹œκΈ€μ„ μ’‹μ•„ν–ˆμ–΄μš”"),
BOARD_HEART("λˆ„κ΅°κ°€ λ‚΄ κ²Œμ‹œκΈ€μ— μ’‹μ•„μš”λ₯Ό λˆŒλ €μ–΄μš”"),
BOARD_COMMENT("λˆ„κ΅°κ°€ λ‚΄ κ²Œμ‹œκΈ€μ— λŒ“κΈ€μ„ λ‹¬μ•˜μ–΄μš”"),
BOARD_COMMENT_DUPLICATE("λˆ„κ΅°κ°€ 같은 κ²Œμ‹œκΈ€μ— λŒ“κΈ€μ„ λ‹¬μ•˜μ–΄μš”"),
BOARD_COMMENT_HEART("λˆ„κ΅°κ°€ λ‚΄ λŒ“κΈ€μ„ μ’‹μ•„ν–ˆμ–΄μš”"),
BOARD_COMMENT_DUPLICATE("λˆ„κ΅°κ°€ λŒ“κΈ€μ„ λ‹¬μ•˜μ–΄μš”"),
BOARD_COMMENT_HEART("λˆ„κ΅°κ°€ λ‚΄ λŒ“κΈ€μ— μ’‹μ•„μš”λ₯Ό λˆŒλ €μ–΄μš”"),
TODAY_QUESTION_PUBLISHED("였늘의 질문 μ€€λΉ„ μ™„λ£Œ!"),
TODAY_QUESTION_CLOSED("였늘의 질문 λ‹΅λ³€ 마감!"),
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ public NotificationLog toNotificationLog(Board board) {

public NotificationLog toNotificationLog(Board board, BoardComment boardComment) {
return NotificationLog.builder()
.subtitle(boardComment.getContent())
.body(board.getContent())
.body(boardComment.getContent())
.boardId(board.getId())
.boardCommentId(boardComment.getId())
.build();
Expand Down Expand Up @@ -78,7 +77,6 @@ private NotificationInfo toBoardNotificationInfo(Notification notification) {
private NotificationInfo toBoardCommentNotificationInfo(Notification notification) {
return NotificationInfo.builder()
.title(notification.getType().getTitle())
.subtitle(notification.getNotificationLog().getSubtitle())
.content(notification.getNotificationLog().getBody())
.boardId(notification.getNotificationLog().getBoardId().toString())
.boardCommentId(notification.getNotificationLog().getBoardCommentId().toString())
Expand Down

0 comments on commit 5b8940c

Please sign in to comment.