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": "a613fb54fac596034b9dd497aed9514c8de0ac1c904ce2c9ff79db28720e6985",
"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": "8d0bc81f751ce6244225b091959f17d98a54bda62027b0bf8daf2743ff79d51c072b61bb229eea33e62d4708307e8ced8bad2ee6d0011aeb6bef86077fb5bd84"
}