docs: def get_context_data(self, **kwargs):
          """ Returns the context data to provide to the template. """
          context = super().get_context_data(**kwargs)
  
          post = self.object
          topic = post.topic
  
          # Handles the case when a poll is associated to the topic.
          try:
              if hasattr(topic, 'poll') and topic.poll.options.exists():
                  poll = topic.poll
                  context['poll'] = poll
                  context['poll_options'] = poll.options.all()
          except ObjectDoesNotExist:  # pragma: no cover
              pass
  
          if not post.is_topic_head:
              # Add the topic review
              previous_posts = (
                  topic.posts
                  .filter(approved=True, created__lte=post.created)
                  .select_related('poster', 'updated_by')
                  .prefetch_related('attachments', 'poster__forum_profile')
                  .order_by('-created')
              )
              previous_posts = previous_posts[:machina_settings.TOPIC_REVIEW_POSTS_NUMBER]
              context['previous_posts'] = previous_posts
  
          return context