delegate published in Elasticsearch to podcast to avoid showing ALL PDEs (#7006)
This commit is contained in:
parent
a396660986
commit
19d31bea03
1 changed files with 4 additions and 1 deletions
|
|
@ -5,13 +5,16 @@ module Search
|
|||
attribute :id, &:search_id
|
||||
|
||||
attributes :body_text, :class_name, :comments_count, :hotness_score, :path,
|
||||
:positive_reactions_count, :published, :published_at, :quote,
|
||||
:positive_reactions_count, :published_at, :quote,
|
||||
:reactions_count, :search_score, :subtitle, :summary, :title,
|
||||
:website_url
|
||||
|
||||
attribute :main_image do |pde|
|
||||
ProfileImage.new(pde.podcast).get(width: 90)
|
||||
end
|
||||
attribute :published do |pde|
|
||||
pde.podcast.published
|
||||
end
|
||||
attribute :slug, &:podcast_slug
|
||||
|
||||
attribute :tags do |pde|
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue