Kay Ohtie on Nostr: I feel like there has to be a VASTLY easier implementation than this ...
I feel like there has to be a VASTLY easier implementation than this raw-js-plus-DOMPurify mess. Trying to read right at 120 lines of JS to generate 12 lines of HTML is a mess. If I could use Jinja2 templating to generate the template JS is using that'd be amazing.
Published at
2023-12-12 22:25:56Event JSON
{
"id": "95a032d2a73204a28933e4feb3fb962bed28c11039216bb8261b50edb29b2fda",
"pubkey": "a46ba86dc562199b683a3fb9b67b3ccd5750f257a1138b83073f010894897940",
"created_at": 1702419956,
"kind": 1,
"tags": [
[
"e",
"9785bab152bd9c8c1cd6e606a885e5ef3d732d83208467f171bb99011aca88b0",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://blimps.xyz/users/KayOhtie/statuses/111569794269909205",
"activitypub"
]
],
"content": "I feel like there has to be a VASTLY easier implementation than this raw-js-plus-DOMPurify mess. Trying to read right at 120 lines of JS to generate 12 lines of HTML is a mess. If I could use Jinja2 templating to generate the template JS is using that'd be amazing.",
"sig": "8eecc33bc58787b279d652ef1edb88331d4640fedc2b7580cc02d7aabbd63c045392af4f58e5a7038c0e69d4c1c19a1e7792c1301f973a96d9b59ceddcbc1a4b"
}