statuses_controller.rb 237 B

12345678910
  1. # frozen_string_literal: true
  2. class Redirect::StatusesController < Redirect::BaseController
  3. private
  4. def set_resource
  5. @resource = Status.find(params[:id])
  6. not_found if @resource.local? || !@resource.distributable?
  7. end
  8. end