web: added support for saving events

This commit is contained in:
Thomas Mathews 2022-12-20 18:47:33 -08:00
parent ca7abdd0b6
commit a5415906e9
5 changed files with 93 additions and 25 deletions

View file

@ -3,6 +3,11 @@
* and fetching of unknown pubkey profiles.
*/
function model_process_event(model, ev) {
if (model.all_events[ev.id]) {
return;
}
model.all_events[ev.id] = ev;
ev.refs = event_get_tag_refs(ev.tags);
ev.pow = event_calculate_pow(ev);