mirror of
https://github.com/funamitech/mastodon
synced 2024-12-25 12:08:29 +09:00
12 lines
251 B
Ruby
12 lines
251 B
Ruby
|
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
|