web: added support for saving events
This commit is contained in:
parent
ca7abdd0b6
commit
a5415906e9
5 changed files with 93 additions and 25 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue