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 Jun 18, 2023
1 parent d97d691 commit aefb5ae
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 @@ -319,8 +319,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 @@ -69,8 +69,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 transientHiddenUsers: Set<String> = setOf()
Expand Down

0 comments on commit aefb5ae

Please sign in to comment.