From 24a198bf80685f9a8edfbbae56b070de90568538 Mon Sep 17 00:00:00 2001 From: Jonathan Staab Date: Mon, 19 Jun 2023 13:23:40 -0700 Subject: [PATCH] Fix quote length --- ROADMAP.md | 24 +++++++++++++ src/app/shared/NoteContentKind1.svelte | 10 +++--- src/app/shared/NoteContentQuote.svelte | 47 ++++++++++++++++++-------- src/util/misc.ts | 4 --- 4 files changed, 63 insertions(+), 22 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index dc4ca416..1ba352fb 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,5 +1,29 @@ # Current +- [ ] White-labeled + - [ ] Add invite code registration for relay + - [ ] Add endpoint to nostream that updates whitelist + - [ ] Show invite code somewhere so users can share it. + - [ ] Use a signed string so it's based on pubkey? + - [ ] Nostream is public-read, apply registration to reads as well + - [ ] Avoid leaking events from private relays +- [ ] Image classification + - https://github.com/bhky/opennsfw2 +- [ ] Convert app store to nip 89 +- [ ] Put search icon in header or hover button, open in modal +- [ ] Centralize relays + - This is ok, relays are the source of decentralization + - clients can help with discoverability + - Add agent to dufflepud database that scrapes relays and reviews + - Serve relays from dufflepud + - Or maybe set up a special purpose relay for relay recs? + +# Core + +- [ ] Private groups +- [ ] Support server-rendered link previews +- [ ] Feeds load forever if a modal is open +- [ ] Support other list types than 30001 - [ ] Spam - Add configurable POW req for replies - Add event queue and undo, use the delay to calculate POW diff --git a/src/app/shared/NoteContentKind1.svelte b/src/app/shared/NoteContentKind1.svelte index cfe0f614..1969813c 100644 --- a/src/app/shared/NoteContentKind1.svelte +++ b/src/app/shared/NoteContentKind1.svelte @@ -1,5 +1,5 @@ @@ -44,18 +56,25 @@ {#await loadQuote()} {:then quote} - {@const person = getPersonWithFallback(quote.pubkey)} -
- - openPerson(quote.pubkey)}> -

{displayPerson(person)}

-
-
- + {#if muted} +

+ You have muted this note. + Show +

+ {:else} + {@const person = getPersonWithFallback(quote.pubkey)} +
+ + openPerson(quote.pubkey)}> +

{displayPerson(person)}

+
+
+ + {/if} {:catch}

Unable to load a preview for quoted event diff --git a/src/util/misc.ts b/src/util/misc.ts index 64e71c99..c5220204 100644 --- a/src/util/misc.ts +++ b/src/util/misc.ts @@ -144,10 +144,6 @@ export const createScroller = (loadMore, {reverse = false, element = null} = {}) element = element || document.body - // NOTE TO FUTURE SELF - // If the scroller is saturating request channels on a slow relay, the - // loadMore function is not properly awaiting all the work necessary. - // That is the problem, but see commit 8371fde for another strategy let done = false const check = async () => { // While we have empty space, fill it