Event JSON
{
"id": "ac54baffa95f7dc497f62ba2602e8390dbb29938cd7d4f68887e630fd355db03",
"pubkey": "b1233eaf4817cd828b793526d7b398b458e8663a10aa40d7850bcb3a7de584a4",
"created_at": 1725041082,
"kind": 1,
"tags": [
[
"p",
"9514f8f344dd309396ef36ea9ce44633165c2752c35cb9c52c0144ea8e14a8c0"
],
[
"imeta",
"url https://medias.m.nintendojo.fr/media_attachments/files/113/052/290/108/887/264/original/f914e8088975893a.png",
"m image/png"
],
[
"p",
"7428de0b9fdbca1d85e11ba7078bd01d4b710a00f0a1a809a0b2d91fd53fc5b6"
],
[
"t",
"code"
],
[
"e",
"e473725e971122bbd1e74e514cbb49a05272b1b3d27bfa09bfc6a650d4f0ec9e",
"",
"root",
"7428de0b9fdbca1d85e11ba7078bd01d4b710a00f0a1a809a0b2d91fd53fc5b6"
],
[
"imeta",
"url https://medias.m.nintendojo.fr/media_attachments/files/113/052/167/223/690/020/original/ca4defed7764117e.png",
"m image/png"
],
[
"proxy",
"https://m.nintendojo.fr/@meduz/113052292405038917",
"web"
],
[
"p",
"b1233eaf4817cd828b793526d7b398b458e8663a10aa40d7850bcb3a7de584a4"
],
[
"e",
"2587c8c1c2aed973bbc51f3ff94e6fac89171c10cbcc6b76df1639cee6a2dd0e",
"",
"reply",
"9514f8f344dd309396ef36ea9ce44633165c2752c35cb9c52c0144ea8e14a8c0"
],
[
"emoji",
"nard",
"https://medias.m.nintendojo.fr/custom_emojis/images/000/015/058/original/13da817bdecbd22a.gif"
],
[
"proxy",
"https://m.nintendojo.fr/users/meduz/statuses/113052292405038917",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://m.nintendojo.fr/users/meduz/statuses/113052292405038917",
"pink.momostr"
],
[
"-"
]
],
"content": "So here’s how I would solve screenshot 1 with TS, since I’m now not using a phone 🙃: https://www.typescriptlang.org/play/?#code/GYVwdgxgLglg9mABDAzgcRFKBTATgEWwjlwENYFEAKMOAE2wC5EA5e7ASmYCM44AbbKSQBvAFCJExMCijIUAUUEBbbGDkBeRLQYA6HdgAqATwAO2RBq1s9CgDIKAsgpaGA+iwDy+BWInJgagBCVCVsVXUORHFJSVxsKBBcJGBSfhRsfwBfP0lpWURsFTVNbXZEUhREAAlDRwdi9VzEeMTk6n9JIvCS3ShSAHMWUlVLK0QAIkcAQQAlAGkJzsQAMhXCxqhdCH5KlDtULel+mBkqCYHMHFwJjn8OAG4xLKA\n\nFor screenshot 2 I guess the same kind of zero-value fuckery is needed because TS is indeed TS. :nard: Thou maybe you can avoid `.closest` by setting this CSS rule:\n\n`button * { pointer-events: none; }`\n\nThis makes sure no children of the button can be an event target, and leads to a more straightforward code: https://www.typescriptlang.org/play/?#code/PTAEEMGdIVwWwJYDsDmFKjuATgaxgA4BcoABgDwDGMkALgPZwC0ARjLQ0qACbi3hNuCbAFNKtBPSQBeAERIRAD1qyAfKQBQG2gE8CI0ABFhYiVNDTQAcgKiAbldAAfawuVWtlADZQMAYRoGOAAhdk4AUS8ROBEkWlAlWljuDAAJABUAWQAZUI4pSOjY+IBvDVBQSik6bBhxemwACgBKUDKKith9Juby0ABfLQqAC3Akbii-KVpsei9IRpE7WhJM+hoRcLti1vaOqqQ6HhNxSS5LReWAOn5sFBF4qFAMnLyIqJi45qvefkgHn4nMxcJ7GUSnKRDDoIABmoEaAEIhODgbtQKJaDBsFxBn0KrRhghIABtZGmM4AXRafVxFVsSxabVpoDctEZJUG-SAA\nhttps://medias.m.nintendojo.fr/media_attachments/files/113/052/167/223/690/020/original/ca4defed7764117e.png\nhttps://medias.m.nintendojo.fr/media_attachments/files/113/052/290/108/887/264/original/f914e8088975893a.png\n",
"sig": "4b1fb6322320325f9d5423f5b132bc90a03b61c5f5e6305b702110f2a219e1469addce229b892f61bf0d7f54a41ba130ba2eb1329de8c865344f68924c7c3bcf"
}