mirror of
https://github.com/mastodon/mastodon.git
synced 2024-10-22 10:35:40 +09:00
b19ae521b7
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
11 lines
237 B
Ruby
11 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
|