From 368e2262570078a0a9172b3508b89b4d5579bd42 Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Sat, 11 May 2024 14:25:44 -0300 Subject: [PATCH] fix(get-client-filters): make client filters List modifiable, avoiding a crash when trying to modify it --- .../org/joinmastodon/android/api/session/AccountSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSession.java b/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSession.java index e2cd5bf91a..1ecac98f62 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSession.java +++ b/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSession.java @@ -329,7 +329,7 @@ public boolean filterStatusContainingObject(T object, Function ex } public List getClientSideFilters(Status status) { - List filters = List.of(); + List filters = new ArrayList<>(); // filter post that have no alt text // it only applies when activated in the settings