Skip to content

Commit

Permalink
userdef. text: use both fixed and dynamic detector
Browse files Browse the repository at this point in the history
  • Loading branch information
abertschi committed Dec 8, 2023
1 parent 1921a8e commit 3d6dc17
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ class UserDefinedTextDetector(private val repo: TextRepository) : AdDetectable,
return false
}
override fun flagAsAdvertisement(payload: AdPayload) =
if (repo.useReflectionForMatch()) flagAsAdvertisementDynamic(payload)
else flagAsAdvertisementFixed(payload)
flagAsAdvertisementFixed(payload) || flagAsAdvertisementDynamic(payload)

override fun getMeta(): AdDetectorMeta = AdDetectorMeta(
"User defined text", "flag a notification based on the presence of text",
Expand Down

0 comments on commit 3d6dc17

Please sign in to comment.