NDK's profileFromEvent parser replaces event's created_at #12

Open
opened 2025-02-03 17:29:06 +00:00 by enes · 0 comments
Collaborator

974788b86b/ndk/src/user/profile.ts (L23)

Issue occurs when saving the profile, if the profile event has the created_at in the content (payload). The payload in question can overwrite event's created_at and replace it with the incorrect one leading to the outdated cache down the line.

https://github.com/nostr-dev-kit/ndk/blob/974788b86b60cff696730e2612718ac034a26165/ndk/src/user/profile.ts#L23 Issue occurs when saving the profile, if the profile event has the `created_at` in the content (payload). The `payload` in question can overwrite event's `created_at` and replace it with the incorrect one leading to the outdated cache down the line.
enes added this to the General project 2025-02-03 17:29:06 +00:00
enes moved this to Bugs in General on 2025-02-03 17:29:09 +00:00
enes added the
Kind/Bug
Project
NDK
labels 2025-02-03 17:29:39 +00:00
Sign in to join this conversation.
No description provided.