mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-12-26 00:30:20 +02:00
Fix #1302 - Extends filters to quoted messages
This commit is contained in:
parent
b23faa1bcb
commit
a935a2d29e
1 changed files with 11 additions and 0 deletions
|
|
@ -135,6 +135,17 @@ public class TimelineHelper {
|
|||
content = Html.fromHtml(status.reblog != null ? status.reblog.content : status.content, Html.FROM_HTML_MODE_LEGACY).toString();
|
||||
else
|
||||
content = Html.fromHtml(status.reblog != null ? status.reblog.content : status.content).toString();
|
||||
if(status.reblog == null && status.getQuote() != null) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
|
||||
content += Html.fromHtml(status.getQuote().content, Html.FROM_HTML_MODE_LEGACY).toString();
|
||||
else
|
||||
content += Html.fromHtml(status.getQuote().content).toString();
|
||||
} else if(status.reblog != null && status.reblog.getQuote() != null) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
|
||||
content += Html.fromHtml(status.reblog.getQuote().content, Html.FROM_HTML_MODE_LEGACY).toString();
|
||||
else
|
||||
content += Html.fromHtml(status.reblog.getQuote().content).toString();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
content = status.reblog != null ? status.reblog.content : status.content;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue