Mattias Wadman on Nostr: npub1vr4dq…d92wq sadly in jq if a literal contains empty the whole literal will be ...
Published at
2024-09-29 13:53:43Event JSON
{
"id": "05ceab0500a8c81c9faca86803e19cfba0039d4980e2752cc39d0e23d87621c0",
"pubkey": "b1a2d3871f56029214e221d0df7c120053d620ce0326c05a83178ccb04ce51df",
"created_at": 1727618023,
"kind": 1,
"tags": [
[
"p",
"60ead0028c1044fb77ac647f88bca796d22185ab978ade8839d9160757b3825e",
"wss://relay.mostr.pub"
],
[
"p",
"4fbf72f4f23853886f17d785dae040957f149b101524edd02f8d1f73b46d604f",
"wss://relay.mostr.pub"
],
[
"e",
"d2adf8e16599b9689f1798ec3c502b67f2e48a1e1b9e7402d25170fe01ec19b2",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://fosstodon.org/users/wader/statuses/113221174774850953",
"activitypub"
]
],
"content": "nostr:npub1vr4dqq5vzpz0kaavv3lc3098jmfzrpdtj79dazpemytqw4ansf0q2d92wq sadly in jq if a literal contains empty the whole literal will be empty. simplest i can come up with is:\n... | if .update then . date_modified = .update end | ...\nit would have been nice if {a: empty} was just {} but it's a bit too late to change that :)",
"sig": "c6f16b730df4cc84471c552271d25cbd55c493b7e5728e30fb205eae3d03e60ef996665b8c3382fae72c2d3feafd0cc3aca170f624adc9398973b71473ef968e"
}