Kuba Suder 🇵🇱🇺🇦 on Nostr: Testing code blocks in posts: ```rb def process_operation(op) case op.type when ...
Testing code blocks in posts:
```rb
def process_operation(op)
case op.type
when :plc_operation
verify_handles(op.did, op.handles, op.pds_endpoint)
when :plc_tombstone
Handle.where(did: op.did).delete_all
else
log "PLC: unrecognized operation type: " + op.type
end
end
```
Published at
2026-07-06 05:25:15 CESTEvent JSON
{
"id": "f55f2c658d243514f87f83fa1da7da915ec98613172a09bc78c259378698a85e",
"pubkey": "0a47b11d1f1802924e40c158544eca8540b6ed0e00c54d211c99ffa4170fb833",
"created_at": 1783308315,
"kind": 1,
"tags": [
[
"proxy",
"https://bsky.brid.gy/convert/ap/at://did:plc:oio4hkxaop4ao4wz2pp3f4cr/app.bsky.feed.post/3mpx5dekko22s",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "Testing code blocks in posts:\n\n```rb\ndef process_operation(op)\n case op.type\n when :plc_operation\n verify_handles(op.did, op.handles, op.pds_endpoint)\n when :plc_tombstone\n Handle.where(did: op.did).delete_all\n else\n log \"PLC: unrecognized operation type: \" + op.type\n end\nend\n```",
"sig": "bfd2445e2eefc50ef10714ca92bb1dc8102b2c1db13bb5aaf5d8a7ebdc4e14b2b294b1bdd6ebb10e84f53c9e9c88141c11dde87c96655eb113c940f9475fcbea"
}