Commit a935a2d2 authored by Thomas's avatar Thomas
Browse files

Fix #1302 - Extends filters to quoted messages

parent b23faa1b
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -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;
                            }