prs on Nostr: Simplify and inline Report event logic. (#1498) Simplify and inline Report event ...
Simplify and inline Report event logic. (#1498)
Simplify and inline Report event logic. Move the tag enum unpacking into a fileprivate extension, unpack the event-creation functions that used the `Report` model as a throw-away intermediate step to creating a NostrEvent object.
refactor/report, 1 commits
https://github.com/damus-io/damus/pull/1498Published at
2023-08-22 04:02:21Event JSON
{
"id": "b5fe4d69b1b9ea9f986a823181528c4475c259c1870257586a406b148a3a70c9",
"pubkey": "edf16b1dd61eab353a83af470cc13557029bff6827b4cb9b7fc9bdb632a2b8e6",
"created_at": 1692676941,
"kind": 1,
"tags": [
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
],
[
"t",
"damuspr"
]
],
"content": "Simplify and inline Report event logic. (#1498)\n\nSimplify and inline Report event logic. Move the tag enum unpacking into a fileprivate extension, unpack the event-creation functions that used the `Report` model as a throw-away intermediate step to creating a NostrEvent object.\n\nrefactor/report, 1 commits\n\nhttps://github.com/damus-io/damus/pull/1498",
"sig": "e22f4874da96035c6f423e0ace4639f60b71be44c8a3a1b8946cfd38ee98c8cdc51631ff0826864e871a71e9770f3eecb2a53f1b2a53c8ffac40bc138f4e7d3f"
}