fix(recommendation): 전 크리에이터 최근 활동 노출을 제외한다
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user