fix(fcm): 커뮤니티 댓글 알림 딥링크에서 크리에이터 경로를 제거한다 #456

Merged
klaus merged 1 commits from test into main 2026-10-13 05:58:31 +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