Compare commits

...

2 Commits

Author SHA1 Message Date
Klaus 537cdbb307 커뮤니티 게시물 시간
- 1개월 -> 1분 으로 표시되는 오류 수정
2024-02-12 16:08:25 +09:00
Klaus 18f53df9f8 전체 새로운 콘텐츠
- 차단한 크리에이터의 콘텐츠를 차단 당한 유저에게 보이지 않도록 수정
2024-02-09 03:42:18 +09:00
2 changed files with 4 additions and 1 deletions

View File

@ -56,6 +56,9 @@ class AudioContentMainService(
offset = pageable.offset,
limit = pageable.pageSize.toLong()
)
.asSequence()
.filter { !blockMemberRepository.isBlocked(blockedMemberId = member.id!!, memberId = it.creatorId) }
.toList()
return GetNewContentAllResponse(totalCount, items)
}

View File

@ -272,7 +272,7 @@ class CreatorCommunityService(
duration.toMinutes() < 60 -> "${duration.toMinutes()}분전"
duration.toHours() < 24 -> "${duration.toHours()}시간전"
duration.toDays() < 30 -> "${duration.toDays()}일전"
duration.toDays() < 365 -> "${duration.toDays() / 30}분전"
duration.toDays() < 365 -> "${duration.toDays() / 30}개월"
else -> "${duration.toDays() / 365}년전"
}
}