From 28f03f0a1156fe534cd77a4e99eb2c30fb147b31 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Mon, 16 Aug 2021 01:32:55 +0200 Subject: [PATCH] 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 --- app/controllers/people_controller.rb | 9 --------- config/routes.rb | 4 ---- 2 files changed, 13 deletions(-) diff --git a/app/controllers/people_controller.rb b/app/controllers/people_controller.rb index 9d33cf338..f03036e10 100644 --- a/app/controllers/people_controller.rb +++ b/app/controllers/people_controller.rb @@ -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 diff --git a/config/routes.rb b/config/routes.rb index 73bd3a383..a7a5af2de 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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.