Fixed the lookup API method
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
class Api::Accounts::LookupController < ApplicationController
|
||||
class Api::Accounts::LookupController < ApiController
|
||||
before_action :doorkeeper_authorize!
|
||||
respond_to :json
|
||||
|
||||
def index
|
||||
@accounts = Account.where(domain: nil).where(username: lookup_params)
|
||||
end
|
||||
|
Reference in New Issue
Block a user