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: users_controller.rb
    path of file: ./repos/forem/app/controllers/concerns/api
    
    the code of the file until where you have to start completion: module Api
  module UsersController
    extend ActiveSupport::Concern

    SHOW_ATTRIBUTES_FOR_SERIALIZATION = %i[
      id username name summary twitter_username github_username website_url
      locat
    
    def unpublish
      authorize(@user, :unpublish_all_articles?)

      target_user = User.find(params[:id].to_i)

      Moderator::UnpublishAllArticlesWorker.perform_async(target_user.id, @user.id)

      note_content = params[:note].presence || "#{@user.username} requested unpublish all articles via API"

      Note.create(noteable: target_user, reason: "unpublish_all_articles",
                  content: note_content, author: @user)

      render status: :no_content
    end