diff --git a/app/src/main/java/com/keylesspalace/tusky/network/MastodonApi.kt b/app/src/main/java/com/keylesspalace/tusky/network/MastodonApi.kt index 3a9ce215b..3da1aa621 100644 --- a/app/src/main/java/com/keylesspalace/tusky/network/MastodonApi.kt +++ b/app/src/main/java/com/keylesspalace/tusky/network/MastodonApi.kt @@ -149,7 +149,7 @@ interface MastodonApi { @Query("limit") limit: Int? = null, /** Types to excludes from the results */ @Query("exclude_types[]") excludes: Set? = null, - @Query("include_filtered") includeFiltered: Boolean + @Query("include_filtered") includeFiltered: Boolean = true ): Response> /** Fetch a single notification */ diff --git a/app/src/test/java/com/keylesspalace/tusky/components/notifications/NotificationsRemoteMediatorTest.kt b/app/src/test/java/com/keylesspalace/tusky/components/notifications/NotificationsRemoteMediatorTest.kt index 34ae432bb..b5192f5f7 100644 --- a/app/src/test/java/com/keylesspalace/tusky/components/notifications/NotificationsRemoteMediatorTest.kt +++ b/app/src/test/java/com/keylesspalace/tusky/components/notifications/NotificationsRemoteMediatorTest.kt @@ -80,7 +80,7 @@ class NotificationsRemoteMediatorTest { val remoteMediator = NotificationsRemoteMediator( accountManager = accountManager, api = mock { - onBlocking { notifications(anyOrNull(), anyOrNull(), anyOrNull(), anyOrNull(), anyOrNull()) } doReturn Response.error(500, "".toResponseBody()) + onBlocking { notifications(anyOrNull(), anyOrNull(), anyOrNull(), anyOrNull(), anyOrNull(), anyOrNull()) } doReturn Response.error(500, "".toResponseBody()) }, db = db, excludes = emptySet() @@ -99,7 +99,7 @@ class NotificationsRemoteMediatorTest { val remoteMediator = NotificationsRemoteMediator( accountManager = accountManager, api = mock { - onBlocking { notifications(anyOrNull(), anyOrNull(), anyOrNull(), anyOrNull(), anyOrNull()) } doThrow IOException() + onBlocking { notifications(anyOrNull(), anyOrNull(), anyOrNull(), anyOrNull(), anyOrNull(), anyOrNull()) } doThrow IOException() }, db = db, excludes = emptySet()