Cleanup person_by_handle route
I think this is a leftover from a long time ago and I can't find anything that still uses that closes #8280
This commit is contained in:
parent
8392c894d2
commit
28f03f0a11
2 changed files with 0 additions and 13 deletions
|
|
@ -113,15 +113,6 @@ class PeopleController < ApplicationController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def retrieve_remote
|
|
||||||
if params[:diaspora_handle]
|
|
||||||
Workers::FetchWebfinger.perform_async(params[:diaspora_handle])
|
|
||||||
head :ok
|
|
||||||
else
|
|
||||||
head :unprocessable_entity
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def find_person
|
def find_person
|
||||||
|
|
|
||||||
|
|
@ -181,10 +181,6 @@ Rails.application.routes.draw do
|
||||||
resources :photos, except: %i(new update)
|
resources :photos, except: %i(new update)
|
||||||
get :stream
|
get :stream
|
||||||
get :hovercard
|
get :hovercard
|
||||||
|
|
||||||
collection do
|
|
||||||
post 'by_handle' => :retrieve_remote, :as => 'person_by_handle'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Note: The contraint for this route's username parameter cannot be removed.
|
# Note: The contraint for this route's username parameter cannot be removed.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue