<commit_before>class PostActionUserSerializer < BasicUserSerializer
  attributes :post_url

  def id
    object.user.id
  end

  def username
    object.user.username
  end

  def avatar_template
    object.user.avatar_template
  end

  def post_url
    object.related_post.url if object.related_post_id && object.related_post
  end

end<commit_msg>FIX: Who Liked a Post now shows UserCard when avatar is clicked<commit_after>class PostActionUserSerializer < BasicUserSerializer
  attributes :post_url,
             :username_lower

  def id
    object.user.id
  end

  def username
    object.user.username
  end

  def username_lower
    object.user.username_lower
  end

  def avatar_template
    object.user.avatar_template
  end

  def post_url
    object.related_post.url if object.related_post_id && object.related_post
  end

end
{'fraction_non_alphanumeric': 0.04659498207885305, 'fraction_numerical': 0.0, 'mean_word_length': 3.387434554973822, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2226881', 'n_tokens_mistral': 265, 'n_tokens_neox': 251, 'n_words': 65}