Module: Mastodon::REST::Reports
Instance Method Summary collapse
-
#create_report(account_id, params = {}) ⇒ Object
Create a report.
Methods included from Utils
#array_param, #perform_request, #perform_request_with_collection, #perform_request_with_object
Instance Method Details
#create_report(account_id, params = {}) ⇒ Object
Create a report
14 15 16 17 |
# 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 |