Nostr.Event.Report (Nostr Lib v0.2.1) (event) (nip56)

View Source

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

Functions

Parses a kind 1984 event into a Report struct. Logs a warning (report events should be ignored).

Types

report_reason()

@type report_reason() ::
  nil | :nudity | :profanity | :illegal | :spam | :impersonation

t()

@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

parse(event)

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

Parses a kind 1984 event into a Report struct. Logs a warning (report events should be ignored).