@ -156,7 +156,7 @@ setInterval(() => {
function createTextNote ( evt , relay ) {
function createTextNote ( evt , relay ) {
const { host , img , isReply , name , replies , time , userName } = getMetadata ( evt , relay ) ;
const { host , img , isReply , name , replies , time , userName } = getMetadata ( evt , relay ) ;
const isLongContent = evt . content . trimRight ( ) . length > 280 ;
const isLongContent = evt . content . trimRight ( ) . length > 280 ;
const content = isLongContent ? evt . content . slice ( 0 , 280 ) : evt . content ;
const content = ( isLongContent ? evt . content . slice ( 0 , 280 ) : evt . content ) . replaceAll ( /\n{3,}/g , '\n\n' ) ;
const hasReactions = reactionMap [ evt . id ] ? . length > 0 ;
const hasReactions = reactionMap [ evt . id ] ? . length > 0 ;
const didReact = hasReactions && ! ! reactionMap [ evt . id ] . find ( reaction => reaction . pubkey === pubkey ) ;
const didReact = hasReactions && ! ! reactionMap [ evt . id ] . find ( reaction => reaction . pubkey === pubkey ) ;
const replyFeed = replies [ 0 ] ? replies . map ( e => replyDomMap [ e . id ] = createTextNote ( e , relay ) ) : [ ] ;
const replyFeed = replies [ 0 ] ? replies . map ( e => replyDomMap [ e . id ] = createTextNote ( e , relay ) ) : [ ] ;