mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 13:09:33 -06:00
25 lines
391 B
Ruby
25 lines
391 B
Ruby
# frozen_string_literal: true
|
|
|
|
class SearchTopicListItemSerializer < ListableTopicSerializer
|
|
include TopicTagsMixin
|
|
|
|
attributes :category_id
|
|
|
|
%i{
|
|
image_url
|
|
thumbnails
|
|
title
|
|
created_at
|
|
last_posted_at
|
|
bumped_at
|
|
bumped
|
|
highest_post_number
|
|
reply_count
|
|
unseen
|
|
}.each do |attr|
|
|
define_method("include_#{attr}?") do
|
|
false
|
|
end
|
|
end
|
|
end
|