mirror of
https://github.com/mastodon/mastodon.git
synced 2026-10-11 18:39:27 -05:00
13 lines
318 B
Ruby
13 lines
318 B
Ruby
# frozen_string_literal: true
|
|
|
|
class RemoteAccountsController < HomeController
|
|
before_action :require_resource_exists!
|
|
|
|
private
|
|
|
|
def require_resource_exists!
|
|
# The page should still render normally, but the HTTP code should be modified
|
|
response.status = 404 if permalink_redirector.object.nil?
|
|
end
|
|
end
|