stacker.news/pages/api
ekzyis 3a7c3f7af2
Add setting to send diagnostics back to SN (#463)
* Add diagnostics settings & endpoint

Stackers can now help us to identify and fix bugs by enabling diagnostics.

This will send anonymized data to us.

For now, this is only used to send events around push notifications.

* Send diagnostics to slack

* Detect OS

* Diagnostics data is only pseudonymous, not anonymous

It's only pseudonymous since with additional knowledge (which stacker uses which fancy name), we could trace the events back to individual stackers.

Data is only anonymous if this is not possible - it must be irreversible.

* Check if window.navigator is defined

* Use Slack SDK

* Catch errors of slack requests

---------

Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2023-09-18 18:00:16 -05:00
..
auth remove slashtags completely 2023-08-17 13:40:21 -05:00
capture Allow zapping, posting and commenting without funds or an account (#336) 2023-08-11 18:50:57 -05:00
lnurlp/[username] Allow zapping, posting and commenting without funds or an account (#336) 2023-08-11 18:50:57 -05:00
log Add setting to send diagnostics back to SN (#463) 2023-09-18 18:00:16 -05:00
nostr allow nip05 for users 2023-01-06 18:53:29 -06:00
ots upgrade to next-auth 4 (bonus: improve error pages) 2023-07-29 14:38:20 -05:00
daily.js update daily permalink 2023-09-12 20:21:16 -05:00
graphql.js remove slashtags temporarily 2023-08-16 19:49:00 -05:00
lnauth.js fix issues with new linting 2023-07-25 09:14:45 -05:00
lnwith.js Fix negative maxWithdrawable (#438) 2023-08-23 15:32:42 -05:00
site.webmanifest.js Remove orientation from manifest (#483) 2023-09-11 14:58:41 -05:00
web-app-origin-association.js Make the web manifest dynamic to incorporate preferred color scheme (#398) 2023-08-15 12:58:27 -05:00