Fix text color in dashboard inputs, sanitize remote status content in UI,
simplify FanOutOnWriteService, add /api/accounts/lookup method
This commit is contained in:
parent
bf08d46e58
commit
9d55529318
14 changed files with 85 additions and 13 deletions
11
app/controllers/api/accounts/lookup_controller.rb
Normal file
11
app/controllers/api/accounts/lookup_controller.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class Api::Accounts::LookupController < ApplicationController
|
||||
def index
|
||||
@accounts = Account.where(domain: nil).where(username: lookup_params)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def lookup_params
|
||||
(params[:usernames] || '').split(',').map(&:strip)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue