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:
Benjamin Neff 2021-08-16 01:32:55 +02:00
parent 8392c894d2
commit 28f03f0a11
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
2 changed files with 0 additions and 13 deletions

View file

@ -113,15 +113,6 @@ class PeopleController < ApplicationController
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
def find_person

View file

@ -181,10 +181,6 @@ Rails.application.routes.draw do
resources :photos, except: %i(new update)
get :stream
get :hovercard
collection do
post 'by_handle' => :retrieve_remote, :as => 'person_by_handle'
end
end
# Note: The contraint for this route's username parameter cannot be removed.