Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
# frozen_string_literal: true
require_relative 'post_item_excerpt'
class UserPostTopicBookmarkBaseSerializer < UserBookmarkBaseSerializer
include TopicTagsMixin
include PostItemExcerpt
attributes :topic_id,
:linked_post_number,
:deleted,
:hidden,
:category_id,
:closed,
:archived,
:archetype,
:highest_post_number,
:bumped_at,
:slug
def topic_id
topic.id
end
def title
topic.title
def fancy_title
topic.fancy_title
def category_id
topic.category_id
def archetype
topic.archetype
def archived
topic.archived
def closed
topic.closed
def highest_post_number
scope.is_whisperer? ? topic.highest_staff_post_number : topic.highest_post_number
def bumped_at
topic.bumped_at
def slug
topic.slug