fiatjaf on Nostr: Then you can do stuff like echo "#surely you're joking, mr ...
Then you can do stuff like
echo "#surely you're joking, mr npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft olas.app is broken again" | nak publish
It will add the hashtag, turn the npub1 code into a nostr:npub1 URI, turn the olas.app string into
https://olas.app, add the "p" tag (and "q" tags too if you were mentioning an nevent1 code or naddr1 code) and finally publish it to your "write" relays and to any mentioned person (or author of mentioned events)'s "read" relays. There is also a --reply flag that you can pass an nevent, naddr or hex id to and it will do the right thing (including setting the correct kind to either 1 or 1111). And there is a --confirm flag that gives you a chance to confirm before actually publishing the result to relays.
Published at
2025-05-06 04:11:41Event JSON
{
"id": "260aaee7035a7954d2d7789b6bfd3627f4d6ab51242863b666d025c6af227dc1",
"pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"created_at": 1746504701,
"kind": 1,
"tags": [
[
"e",
"c6116a2a137e78e0dd387c0631a1607847242323b9232ee902f1300dbb192711"
]
],
"content": "Then you can do stuff like\n\necho \"#surely you're joking, mr npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft olas.app is broken again\" | nak publish\n\nIt will add the hashtag, turn the npub1 code into a nostr:npub1 URI, turn the olas.app string into https://olas.app, add the \"p\" tag (and \"q\" tags too if you were mentioning an nevent1 code or naddr1 code) and finally publish it to your \"write\" relays and to any mentioned person (or author of mentioned events)'s \"read\" relays. There is also a --reply flag that you can pass an nevent, naddr or hex id to and it will do the right thing (including setting the correct kind to either 1 or 1111). And there is a --confirm flag that gives you a chance to confirm before actually publishing the result to relays.",
"sig": "15c94cb3a80ea71abe1d661beb1d8e1f4f6c4162669e18421fa4e68602df4aa41dedd512a5c9550b4caeedb7f06c8c3ab057c74c70e1545c12bfaa23a9536a9e"
}