View Source Mobilizon.GraphQL.API.Reports (Mobilizon v5.0.0-beta.1)

API for Reports.

Summary

Functions

Create a report/flag on an actor, and optionally on an event or on comments.

Functions

Link to this function

create_report_note(report, moderator, content)

View Source
@spec create_report_note(
  Mobilizon.Reports.Report.t(),
  Mobilizon.Actors.Actor.t(),
  String.t()
) ::
  {:ok, Mobilizon.Reports.Note.t()} | {:error, String.t() | Ecto.Changeset.t()}

Create a note on a report

Link to this function

delete_report_note(note, moderator)

View Source
@spec delete_report_note(Mobilizon.Reports.Note.t(), Mobilizon.Actors.Actor.t()) ::
  {:ok, Mobilizon.Reports.Note.t()} | {:error, Ecto.Changeset.t() | String.t()}

Delete a report note

Create a report/flag on an actor, and optionally on an event or on comments.

Link to this function

update_report_status(actor, report, status, antispam_feedback \\ nil)

View Source
@spec update_report_status(
  Mobilizon.Actors.Actor.t(),
  Mobilizon.Reports.Report.t(),
  atom(),
  atom() | nil
) ::
  {:ok, Mobilizon.Reports.Report.t()}
  | {:error, Ecto.Changeset.t() | String.t()}

Update the status of a report