mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-18 19:23:40 +00:00
Fix a few minor bugs
This commit is contained in:
parent
e90170d3de
commit
308b5cac63
@ -49,7 +49,9 @@
|
|||||||
- [ ] https://media.nostr.band/
|
- [ ] https://media.nostr.band/
|
||||||
- [ ] Make the note relays button modal make sense, one relay with no explanation is not good
|
- [ ] Make the note relays button modal make sense, one relay with no explanation is not good
|
||||||
- [ ] Linkify invoices
|
- [ ] Linkify invoices
|
||||||
- [ ] Linkify bech32 entities w/ NIP 21 https://github.com/nostr-protocol/nips/blob/master/21.md
|
- [ ] Linkify bech32 entities w/ NIP 21
|
||||||
|
- https://github.com/nostr-protocol/nips/blob/master/21.md
|
||||||
|
- https://github.com/nostr-protocol/nips/issues/319
|
||||||
- [ ] Person zaps
|
- [ ] Person zaps
|
||||||
- [ ] Collapsible thread view
|
- [ ] Collapsible thread view
|
||||||
- [ ] Split notifications into replies + everything else, or add filters
|
- [ ] Split notifications into replies + everything else, or add filters
|
||||||
|
@ -85,7 +85,7 @@ export const modal = {
|
|||||||
// characters long, respectively. Put the threshold a little lower in case
|
// characters long, respectively. Put the threshold a little lower in case
|
||||||
// someone accidentally enters a key with the last few digits missing
|
// someone accidentally enters a key with the last few digits missing
|
||||||
const redactErrorInfo = info =>
|
const redactErrorInfo = info =>
|
||||||
JSON.parse(JSON.stringify(info) .replace(/\w{60}\w+/g, '[REDACTED]'))
|
JSON.parse(JSON.stringify(info || null).replace(/\w{60}\w+/g, '[REDACTED]'))
|
||||||
|
|
||||||
// Wait for bugsnag to be started in main
|
// Wait for bugsnag to be started in main
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@ -116,7 +116,8 @@ const session = Math.random().toString().slice(2)
|
|||||||
export const logUsage = async name => {
|
export const logUsage = async name => {
|
||||||
// Hash the user's pubkey so we can identify unique users without knowing
|
// Hash the user's pubkey so we can identify unique users without knowing
|
||||||
// anything about them
|
// anything about them
|
||||||
const ident = hash(user.getPubkey())
|
const pubkey = user.getPubkey()
|
||||||
|
const ident = pubkey ? hash(pubkey) : 'unknown'
|
||||||
const {dufflepudUrl, reportAnalytics} = user.getSettings()
|
const {dufflepudUrl, reportAnalytics} = user.getSettings()
|
||||||
|
|
||||||
if (reportAnalytics) {
|
if (reportAnalytics) {
|
||||||
|
Loading…
Reference in New Issue
Block a user