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: h_card_controller.rb
    path of file: ./repos/diaspora_federation/app/controllers/diaspora_federation
    
    the code of the file until where you have to start completion: # frozen_strin
    
    def hcard
      person_hcard = DiasporaFederation.callbacks.trigger(:fetch_person_for_hcard, params[:guid])

      if person_hcard.nil?
        head :not_found
      else
        logger.info "hcard profile request for: #{person_hcard.nickname}:#{person_hcard.guid}"
        # rubocop:disable Rails/OutputSafety
        render html: person_hcard.to_html.html_safe
        # rubocop:enable Rails/OutputSafety
      end