diff --git a/ROADMAP.md b/ROADMAP.md index 42b90cde..dc4ca416 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,7 +1,10 @@ # Current +- [ ] Spam + - Add configurable POW req for replies + - Add event queue and undo, use the delay to calculate POW - [ ] Support other kinds - - Fix note truncation + - Fix note truncation, sometimes an ellipsis ends up after the last one - [ ] Feeds load forever if a modal is open - [ ] Support other list types than 30001 - [ ] Fix connection management stuff. Have GPT help diff --git a/src/app/shared/NoteContent.svelte b/src/app/shared/NoteContent.svelte index 272f8281..733e36b2 100644 --- a/src/app/shared/NoteContent.svelte +++ b/src/app/shared/NoteContent.svelte @@ -1,107 +1,20 @@ -
- {#if rating} - {@const [type, value] = Tags.from(note) - .reject(t => ["l", "L"].includes(t[0])) - .first()} - {@const action = switcher(type, { - r: () => modal.push({type: "relay/detail", url: value}), - p: () => modal.push({type: "person/feed", pubkey: value}), - e: () => modal.push({type: "note/detail", note: {id: value}}), - })} - {@const display = switcherFn(type, { - r: () => displayRelay({url: value}), - p: () => displayPerson(getPersonWithFallback(value)), - e: () => "a note", - default: "something", - })} -
+ {#each shortContent as { type, value }, i}
+ {#if type === NEWLINE}
+