You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: comment.rb
    path of file: ./repos/forem/app/models
    
    the code of the file until where you have to start completion: class Comment < ApplicationRecord
  has_ancestry
  resourcify

  include PgSearch::Model
  include Reactable

  BODY_MARKDOWN_SIZE_RANGE = (1..25_000)

  COMMENTABLE_TYPES = %w[Article PodcastEpisode].freeze

  LOW_QUALITY_THRESHOLD = -75
  HIDE_THRESHOLD = -400 # hide comments below this threshold

 
    
  def custom_css
    MarkdownProcessor::Parser.new(body_markdown).tags_used.map do |tag|
      Rails.application.assets["ltags/#{tag}.css"].to_s
    end.join
  end

  def title(length = 80)
    return self.class.title_deleted if deleted
    return self.class.title_hidden if hidden_by_commentable_user

    text = ActionController::Base.helpers.strip_tags(processed_html).strip
    return self.class.title_image_only if only_contains_image?(text)

    truncated_text = ActionController::Base.helpers.truncate(text, length: length).gsub("&#39;", "'").gsub("&amp;", "&")
    Nokogiri::HTML.fragment(truncated_text).text # unescapes all HTML entities
  end

  def video
    nil
  end

  def readable_publish_date
    if created_at.year == Time.current.year
      I18n.l(created_at, format: :short)
    else
      I18n.l(created_at, format: :short_with_yy)
    end
  end