mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
feat: add target_account & reported_statuses to DittoEvent type
This commit is contained in:
parent
af7b83cf8a
commit
b8df95408b
1 changed files with 10 additions and 0 deletions
|
|
@ -25,4 +25,14 @@ export interface DittoEvent extends NostrEvent {
|
|||
repost?: DittoEvent;
|
||||
quote_repost?: DittoEvent;
|
||||
reacted?: DittoEvent;
|
||||
/** The account being reported.
|
||||
* Must be a kind 0 hydrated.
|
||||
* https://github.com/nostr-protocol/nips/blob/master/56.md
|
||||
*/
|
||||
target_account?: DittoEvent;
|
||||
/** The statuses being reported.
|
||||
* Nostr only support reporting one note, the array of reported notes can be found in the `status_ids` field after JSON.parsing the `content` of a kind 1984.
|
||||
* https://github.com/nostr-protocol/nips/blob/master/56.md
|
||||
*/
|
||||
reported_statuses?: DittoEvent[];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue