Foone🏳️⚧️ on Nostr: now I'm trying to figure out the following: I have a vector of Commands (which is an ...
now I'm trying to figure out the following:
I have a vector of Commands (which is an enum). Some of them are Include commands. I need to go through the vec and replace the Include commands with the Commands from the item they're supposed to Include.
So I need to iterate through the vec and do something special when the command is an Include vs something else.
Published at
2024-07-14 02:13:35Event JSON
{
"id": "6a7bba2955c00c203630701084d342ed234772f98c886500774c6f0941882c8c",
"pubkey": "8d0c6793de7edd25b3e6fcfd2e4e9b301cec2c7e577a9dcf0247e64d7c3c737e",
"created_at": 1720923215,
"kind": 1,
"tags": [
[
"e",
"281dd282be15ead718be74f1e15ce47de4bf706069fc6583fad568497a935492",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://digipres.club/users/foone/statuses/112782423879365633",
"activitypub"
]
],
"content": "now I'm trying to figure out the following:\n\nI have a vector of Commands (which is an enum). Some of them are Include commands. I need to go through the vec and replace the Include commands with the Commands from the item they're supposed to Include.\n\nSo I need to iterate through the vec and do something special when the command is an Include vs something else.",
"sig": "c7c4a16c3032d9e176f7c7806843d7e946a5e1152a8b4fc1bbb3f0b668260633327e8b58c0ca6939247fd751764f96eeaebcc21e3391f7e0f62fffd47f5e44c9"
}