Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
Filters off by default
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyGiorgio committed Aug 12, 2023
1 parent bef90d3 commit 8c07755
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ object LocalPreferences {
} else {
null
}
val filterSpam = getBoolean(PrefKeys.FILTER_SPAM_FROM_STRANGERS, true)
val warnAboutReports = getBoolean(PrefKeys.WARN_ABOUT_REPORTS, true)
val filterSpam = getBoolean(PrefKeys.FILTER_SPAM_FROM_STRANGERS, false)
val warnAboutReports = getBoolean(PrefKeys.WARN_ABOUT_REPORTS, false)

val lastReadPerRoute = try {
getString(PrefKeys.LAST_READ_PER_ROUTE, null)?.let {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.vitorpamplona.amethyst

object OptOutFromFilters {
var warnAboutPostsWithReports: Boolean = true
var filterSpamFromStrangers: Boolean = true
var warnAboutPostsWithReports: Boolean = false
var filterSpamFromStrangers: Boolean = false

fun start(warnAboutReports: Boolean, filterSpam: Boolean) {
warnAboutPostsWithReports = warnAboutReports
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class Account(
var proxy: Proxy?,
var proxyPort: Int,
var showSensitiveContent: Boolean? = null,
var warnAboutPostsWithReports: Boolean = true,
var filterSpamFromStrangers: Boolean = true,
var warnAboutPostsWithReports: Boolean = false,
var filterSpamFromStrangers: Boolean = false,
var lastReadPerRoute: Map<String, Long> = mapOf<String, Long>(),
var settings: Settings = Settings()
) {
Expand Down

0 comments on commit 8c07755

Please sign in to comment.