Râu Cao c53d9d3c60
All checks were successful
continuous-integration/drone/push Build is passing
WIP Sync Mastodon IDs/profiles to local accounts
2025-05-17 16:46:43 +04:00

13 lines
260 B
Ruby

module MastodonManager
class FetchUser < MastodonManagerService
def initialize(mastodon_id:)
@mastodon_id = mastodon_id
end
def call
user = get "v1/admin/accounts/#{@mastodon_id}"
user.with_indifferent_access
end
end
end