home: add quote repost counter and handler

This adds the initial support code for counting and handling
quote reposts.

Eventually we are going to replace all of the event counts by stats
within nostrdb, but we do this in the meantime now.

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-03-16 12:05:49 +00:00
parent 6111e244de
commit 8cdbc84093
6 changed files with 36 additions and 8 deletions

View File

@@ -49,7 +49,8 @@ func generate_test_damus_state(
nav: .init(),
music: .init(onChange: {_ in }),
video: .init(),
ndb: ndb)
ndb: ndb,
quote_reposts: .init(our_pubkey: our_pubkey) )
return damus
}