fix(recommendation): 전 크리에이터 최근 활동 노출을 제외한다

This commit is contained in:
2026-07-31 14:50:54 +09:00
parent 7b9213a9ea
commit eb0ff7537e
2 changed files with 20 additions and 0 deletions

View File

@@ -154,6 +154,7 @@ class DefaultHomeRecommendationQueryRepository(
and lr.channel_name <> ''
and (:includeAdultActivities = true or lr.is_adult = false)
and m.is_active = true
and m.role = 'CREATOR'
union all
select m.id as creator_id,
m.nickname as creator_nickname,
@@ -169,6 +170,7 @@ class DefaultHomeRecommendationQueryRepository(
and ac.release_date is not null
and (:includeAdultActivities = true or ac.is_adult = false)
and m.is_active = true
and m.role = 'CREATOR'
union all
select m.id as creator_id,
m.nickname as creator_nickname,
@@ -182,6 +184,7 @@ class DefaultHomeRecommendationQueryRepository(
where cc.is_active = true
and (:includeAdultActivities = true or cc.is_adult = false)
and m.is_active = true
and m.role = 'CREATOR'
) activities
) ranked
where ranked.creator_rank = 1