glitch-soc/mastodon

View on GitHub
app/controllers/redirect/accounts_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class Redirect::AccountsController < Redirect::BaseController
  private

  def set_resource
    @resource = Account.find(params[:id])
    not_found if @resource.local?
  end
end