Skip to content

Commit

Permalink
Ellipsize note content as a last step (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
davotoula authored Mar 14, 2024
1 parent c634f5d commit a5a8687
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ fun renderContentAsAnnotatedString(
.removeUrls(urls = mediaAttachments.map { it.url })
.removeUrls(urls = if (!shouldKeepNostrNoteUris) mentionedPosts.map { it.uri } else emptyList())
.removeUrls(urls = if (shouldDeleteLinks) linkAttachments.map { it.url } else emptyList())
.ellipsize(expanded = expanded, ellipsizeText = seeMoreText)
.replaceNostrProfileUrisWithHandles(resources = mentionedUsers)
.clearParsedPrimalLinks()
.trim()
.ellipsize(expanded = expanded, ellipsizeText = seeMoreText)

return buildAnnotatedString {
append(refinedContent)
Expand Down

0 comments on commit a5a8687

Please sign in to comment.