Add tags in any when pinned / Fix quotes with tags breaking lines
This commit is contained in:
parent
785257cc6c
commit
9d6a2057ab
|
@ -221,6 +221,8 @@ public class HashTagActivity extends BaseActivity {
|
|||
tagTimeline.name = stripTag.trim();
|
||||
tagTimeline.isNSFW = false;
|
||||
tagTimeline.isART = false;
|
||||
tagTimeline.any = new ArrayList<>();
|
||||
tagTimeline.any.add(stripTag.trim());
|
||||
pinnedTimeline.tagTimeline = tagTimeline;
|
||||
pinned.pinnedTimelines.add(pinnedTimeline);
|
||||
if (update) {
|
||||
|
|
|
@ -124,7 +124,7 @@ public class SpannableHelper {
|
|||
if (status != null && status.mentions != null) {
|
||||
mentions.addAll(status.mentions);
|
||||
}
|
||||
text = text.replaceAll("((<\\s?p\\s?>|<\\s?br\\s?/?>)>(((?!([<])).)*))", "$2<blockquote>$3</blockquote>");
|
||||
text = text.replaceAll("((<\\s?p\\s?>|<\\s?br\\s?/?>)>(((?!(<\\s?br\\s?/?>|<\\s?/s?p\\s?>)).)*))", "$2<blockquote>$3</blockquote>");
|
||||
text = text.trim().replaceAll("\\s{3}", " ");
|
||||
text = text.trim().replaceAll("\\s{2}", " ");
|
||||
SpannableString initialContent;
|
||||
|
|
Loading…
Reference in New Issue