Sarvo on Nostr: npub1v7t4y…lck6k replace if (reaction.startsWith(':')) { const name = ...
npub1v7t4yx9vxtv3mat0hdsduuym4fvjd5dzmdlh82ssa40phr965h2s2lck6k (npub1v7t…ck6k) replace
if (reaction.startsWith(':')) {
const name = reaction.replaceAll(':', '');
with
// Translate star into thumbs up
if (reaction != "\u{2B50}") {
object.content = reaction;
object._misskey_reaction = reaction;
}
content: reaction,
_misskey_reaction: reaction,
};
just make sure colons and stuff matches, so you don't have any identation error.
Published at
2023-07-22 03:04:14Event JSON
{
"id": "ba61563e81c6b69cc5da2e375d95bd0714200a4d54c0b7426d978e2cfc62b5a7",
"pubkey": "84efe18faebb4aa1791b01060857099a7486732c8d176596896178879eb1313c",
"created_at": 1689995054,
"kind": 1,
"tags": [
[
"p",
"67975218ac32d91df56fbb60de709baa5926d1a2db7f73aa10ed5e1b8cbaa5d5",
"wss://relay.mostr.pub"
],
[
"p",
"7da45a9537fdeba5a24831edbb9480f8618a769b5aed552a3d8c8c4d8e401ee5",
"wss://relay.mostr.pub"
],
[
"e",
"fb3e52d60427674e0f1065b077cef1b9d75eaa156be9ed3c1b888552d8506358",
"wss://relay.mostr.pub",
"reply"
],
[
"mostr",
"https://novoa.nagoya/notes/9hgzqeytee"
]
],
"content": "nostr:npub1v7t4yx9vxtv3mat0hdsduuym4fvjd5dzmdlh82ssa40phr965h2s2lck6k replace \n\n\nif (reaction.startsWith(':')) {\n const name = reaction.replaceAll(':', '');\nwith \n\n // Translate star into thumbs up\n if (reaction != \"\\u{2B50}\") {\n object.content = reaction;\n object._misskey_reaction = reaction;\n }\n content: reaction,\n _misskey_reaction: reaction,\n };\njust make sure colons and stuff matches, so you don't have any identation error.",
"sig": "7d965706617f22a035bb15f2755ad81995617db9a0057942ad9fc1feecb3cc1885f0e1cd4b492c668dcf8d2c7b4b7f87ee28adbc53c4fd186e7d8a826808e5da"
}