View Source Nostr.Event.Report (Nostr Lib v0.1.1) (event) (nip56)

Report

DO NOT USE - the report event should be ignored, it exists only to please Apple Store

Defined in NIP 56 https://github.com/nostr-protocol/nips/blob/master/56.md

Summary

Types

@type report_reason() ::
  nil | :nudity | :profanity | :illegal | :spam | :impersonation
@type t() :: %Nostr.Event.Report{
  description: nil | String.t(),
  event: Nostr.Event.t(),
  note: nil | %{id: <<_::32, _::_*8>>, reason: report_reason()},
  user: %{pubkey: <<_::32, _::_*8>>, reason: report_reason()}
}

Functions

@spec parse(event :: Nostr.Event.t()) :: t()