diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java index 84a920211b..af0d5b95ce 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java @@ -274,21 +274,21 @@ public static ArrayList buildItems(BaseStatusListFragment contentItems=items; } - if(statusForContent.quote!=null) { - int quoteInlineIndex=statusForContent.content.lastIndexOf("

RE:"); - if(quoteInlineIndex==-1) - quoteInlineIndex=statusForContent.content.lastIndexOf("

RE:"); - if(quoteInlineIndex!=-1) - statusForContent.content=statusForContent.content.substring(0, quoteInlineIndex); - else { - // hide non-official quote patters - Matcher matcher=QUOTE_MENTION_PATTERN.matcher(status.content); - if(matcher.find()){ - String quoteMention=matcher.group(); - statusForContent.content=statusForContent.content.replace(quoteMention, ""); + if(statusForContent.quote!=null) { + int quoteInlineIndex=statusForContent.content.lastIndexOf("

RE:"); + if(quoteInlineIndex==-1) + quoteInlineIndex=statusForContent.content.lastIndexOf("

RE:"); + if(quoteInlineIndex!=-1) + statusForContent.content=statusForContent.content.substring(0, quoteInlineIndex); + else { + // hide non-official quote patters + Matcher matcher=QUOTE_MENTION_PATTERN.matcher(status.content); + if(matcher.find()){ + String quoteMention=matcher.group(); + statusForContent.content=statusForContent.content.replace(quoteMention, ""); + } } } - } boolean hasSpoiler=!TextUtils.isEmpty(statusForContent.spoilerText); if(!TextUtils.isEmpty(statusForContent.content)){