new renderer for newsfeed

This commit is contained in:
Ren Amamiya
2023-04-26 14:53:04 +07:00
parent 9d635d472e
commit 7a2e08f601
9 changed files with 266 additions and 212 deletions

View File

@@ -8,7 +8,7 @@ export const NoteQuoteRepost = memo(function NoteQuoteRepost({ event }: { event:
const rootNote = () => {
let note = null;
if (event.content.length > 0) {
if (event.content) {
const content = destr(event.content);
if (content) {
note = <RootNote event={content} />;