module Mastodon::REST::Reports

Public Instance Methods

create_report(account_id, params = {}) click to toggle source

Create a report @param account_id [Integer] @param params [Hash] @option params :status_ids [Array<Integer>] Statuses to be included in the report @option params :comment [String] Description of the report @option params :forward [Boolean] Whether to forward a copy of the report to the origin of the account

# File lib/mastodon/rest/reports.rb, line 14
def create_report(account_id, params = {})
  params[:'status_ids[]'] = params.delete(:status_ids) if params.key?(:status_ids)
  perform_request(:post, '/api/v1/reports', { account_id: account_id }.merge(params))
end