Merge pull request 'fix(fcm): 커뮤니티 댓글 알림 딥링크에서 크리에이터 경로를 제거한다' (#456) from test into main

Reviewed-on: #456
This commit was merged in pull request #456.
This commit is contained in:
2026-10-13 05:58:30 +00:00
2 changed files with 3 additions and 4 deletions
@@ -207,12 +207,11 @@ class FcmService(
"voiceon-test"
}
val baseDeepLink = "$uriScheme://${deepLinkValue.value}/$deepLinkId"
if (deepLinkValue == FcmDeepLinkValue.COMMUNITY && deepLinkCommentPostId != null) {
return "$baseDeepLink?postId=$deepLinkCommentPostId"
return "$uriScheme://${deepLinkValue.value}?postId=$deepLinkCommentPostId"
}
return baseDeepLink
return "$uriScheme://${deepLinkValue.value}/$deepLinkId"
}
fun buildDataPayload(
@@ -212,7 +212,7 @@ class PushNotificationServiceTest {
val captor = ArgumentCaptor.forClass(PushNotificationList::class.java)
Mockito.verify(pushNotificationListRepository).save(captor.capture())
val saved = captor.value
assertEquals("voiceon://community/77?postId=999", saved.deepLink)
assertEquals("voiceon://community?postId=999", saved.deepLink)
}
@Test