From c6081fb4d4667e17ae04f1b1f3324a477b110cc5 Mon Sep 17 00:00:00 2001 From: Jacocococo Date: Fri, 29 Dec 2023 23:27:14 +0100 Subject: [PATCH] Let quoted posts appear in notifications --- .../joinmastodon/android/ui/displayitems/StatusDisplayItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 4e6193cebe..a1ecb0642c 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 @@ -295,7 +295,7 @@ public static ArrayList buildItems(BaseStatusListFragment if(statusForContent.card!=null && statusForContent.mediaAttachments.isEmpty() && statusForContent.quote==null && !statusForContent.card.isHashtagUrl(statusForContent.url)){ contentItems.add(new LinkCardStatusDisplayItem(parentID, fragment, statusForContent)); } - if(statusForContent.quote!=null && !(parentObject instanceof Notification)){ + if(statusForContent.quote!=null && (flags & FLAG_INSET)==0){ if(!statusForContent.mediaAttachments.isEmpty() && statusForContent.poll==null) // add spacing if immediately preceded by attachment contentItems.add(new DummyStatusDisplayItem(parentID, fragment)); contentItems.addAll(buildItems(fragment, statusForContent.quote, accountID, parentObject, knownAccounts, filterContext, FLAG_NO_FOOTER | FLAG_INSET | FLAG_NO_EMOJI_REACTIONS | FLAG_IS_FOR_QUOTE));