10 lines
237 B
Ruby
10 lines
237 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Redirect::StatusesController < Redirect::BaseController
|
|
private
|
|
|
|
def set_resource
|
|
@resource = Status.find(params[:id])
|
|
not_found if @resource.local? || !@resource.distributable?
|
|
end
|
|
end
|