Downes 🍁 on Nostr: Another undocumented quirk of masto.js - where the Mastodon API json uses underscored ...
Another undocumented quirk of masto.js - where the Mastodon API json uses underscored element names, like 'display_name', masto.js converts them to camelCase, like 'displayName'. So annoying.
Published at
2024-09-06 18:06:38Event JSON
{
"id": "3c638f59aa8818d383735fb660cf83b3e055ec25e67e07bfd49c200e8e2df191",
"pubkey": "fed3de3dfef44fe3c5703a89667d546e199c388a8577bf6e082f4ac3aa47c462",
"created_at": 1725645998,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/Downes/statuses/113091936149923391",
"activitypub"
]
],
"content": "Another undocumented quirk of masto.js - where the Mastodon API json uses underscored element names, like 'display_name', masto.js converts them to camelCase, like 'displayName'. So annoying.",
"sig": "096f89faf477191d78989c7b68cd4374d602ee0b51169c55841ee4e585f40d4cfbd3cb2579151df5264fe807effbb2a58af3adec909be7ed7a2c997e15ffcfd6"
}