stacker.news/api
SatsAllDay 906571324a
De-dupe item-driven notifications (#457)
* De-dupe item-driven notifications

Update how we query for item-driven notifications to de-dupe them for:

1. mentions
2. replies
3. thread subscriptions
4. user subscriptions

users should recieve only 1 notification for any given item created by another user, following the above priority order

this is accomplished by querying for replies to current user, replies on subscribed threads, items from subscribed users, and mentions (if enabled for the current user), sorting those results by item id and priority order within item id based on notification type, then selecting the highest priority notification from each item id

these results are then union all'ed with all other notification types, unchanged.

* remove extra union hashing

---------

Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2023-08-30 20:38:31 -05:00
..
lnd Add docs for local LND setup 2023-05-19 18:28:46 -05:00
models refine module instantiation 2022-04-27 17:06:42 -05:00
resolvers De-dupe item-driven notifications (#457) 2023-08-30 20:38:31 -05:00
search index item path in search 2022-01-28 13:19:56 -06:00
typeDefs allow viewing reward ranges 2023-08-29 19:13:21 -05:00
webPush Enhance logging related to web push (#412) 2023-08-15 12:59:58 -05:00
ssrApollo.js fix closure stacker bug 2023-08-30 19:03:05 -05:00