Martti Malmi on Nostr: Iris boosts are broken. Trying to fix, but somehow this code outputs an event with ...
Iris boosts are broken. Trying to fix, but somehow this code outputs an event with the tags array in wrong order so that #[ 0 ] refers to 'p' tag, not 'e'.
Nostr.publish({
kind: 1,
tags: [
['e', nostrId, '', 'mention'],
['p', author],
],
content: '#[0]',
});
Published at
2023-01-26 06:58:34Event JSON
{
"id": "937af66e58243c5acefb140d71040591cd2bbd01590b73352a63832864ef5b34",
"pubkey": "4523be58d395b1b196a9b8c82b038b6895cb02b683d0c253a955068dba1facd0",
"created_at": 1674716314,
"kind": 1,
"tags": [],
"content": "Iris boosts are broken. Trying to fix, but somehow this code outputs an event with the tags array in wrong order so that #[ 0 ] refers to 'p' tag, not 'e'.\n\n Nostr.publish({\n kind: 1,\n tags: [\n ['e', nostrId, '', 'mention'],\n ['p', author],\n ],\n content: '#[0]',\n });",
"sig": "d355061b3fa7ac4a0a81b45d7a64bb9e49059839cc6cc5ddbf4f6e3ab8803597e4de4be25f51338aee16a5292741aa0ef570ff216342161e395421c326efcb1d"
}