Merge pull request #583 from barrydeen/feat/wot-filter-threads

feat: apply web of trust filter to thread replies
This commit is contained in:
Barry Deen
2026-06-05 17:17:09 -04:00
committed by GitHub
3 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -19,8 +19,8 @@ android {
applicationId = baseApplicationId
minSdk = 26
targetSdk = 35
versionCode = 80
versionName = "1.1.0"
versionCode = 81
versionName = "1.1.1"
resValue("string", "app_name", "Wisp")
ndk {
@@ -313,7 +313,7 @@ class EventRepository(val profileRepo: ProfileRepository? = null, val muteRepo:
private val WOT_EXEMPT_KINDS = intArrayOf(0, 3, 4, 10002, 10050, 1059, 13, 14)
private fun isWotFiltered(pubkey: String, kind: Int): Boolean {
fun isWotFiltered(pubkey: String, kind: Int): Boolean {
if (safetyPrefs?.wotFilterEnabled?.value != true) return false
val netRepo = extendedNetworkRepo ?: return false
if (!netRepo.isNetworkReady()) return false
@@ -434,6 +434,7 @@ class ThreadViewModel : ViewModel() {
if (deletedRepo?.isDeleted(event.id) == true) continue
if (muteRepo?.isBlocked(event.pubkey) == true) continue
if (Nip10.isStandaloneQuote(event)) continue
if (eventRepoRef?.isWotFiltered(event.pubkey, event.kind) == true) continue
if (spamEnabled && spamClassifier != null &&
event.pubkey != currentUserPubkey &&