mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-14 12:14:24 -05:00
18 lines
328 B
Ruby
18 lines
328 B
Ruby
class FetchFeedService < BaseService
|
|
# Fetch an account's feed and process it
|
|
# @param [Account] account
|
|
def call(account)
|
|
process_service.(http_client.get(account.remote_url), account)
|
|
end
|
|
|
|
private
|
|
|
|
def process_service
|
|
@process_service ||= ProcessFeedService.new
|
|
end
|
|
|
|
def http_client
|
|
HTTP
|
|
end
|
|
end
|