1
0
Fork 1

Any link consider spammy

This commit is contained in:
Stephen Paul Weber 2024-11-03 02:38:08 +01:00 committed by Arne
parent a6d5a4ad37
commit b7a0f4eeca

View file

@ -1567,7 +1567,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
return;
}
} catch (final java.util.regex.PatternSyntaxException e) { } // Not supported on old android
if (body.length() > 320 || (!"Cyrl".equals(script) && body.matches(".*\\p{IsCyrillic}.*")) || body.matches(".*(?:\\n.*\\n.*\\n|[Aa]\\s*d\\s*v\\s*v\\s*e\\s*r\\s*t|[Pp]romotion|[Dd][Dd][Oo][Ss]|[Ee]scrow|payout|seller|write me when will be|v seti|[Pp]rii?vee?t|there\?|online\?|exploit|bit\\.ly|goo\\.gl|tinyurl\\.com|tiny\\.cc|lc\\.chat|is\\.gd|soo\\.gd|s2r\\.co|clicky\\.me|budrul\\.com|bc\\.vc|uguu\\.se).*")) {
if (body.length() > 320 || !m.getLinks().isEmpty() || (!"Cyrl".equals(script) && body.matches(".*\\p{IsCyrillic}.*")) || body.matches(".*(?:\\n.*\\n.*\\n|[Aa]\\s*d\\s*v\\s*v\\s*e\\s*r\\s*t|[Pp]romotion|[Dd][Dd][Oo][Ss]|[Ee]scrow|payout|seller|write me when will be|v seti|[Pp]rii?vee?t|there\?|online\?|exploit|bit\\.ly|goo\\.gl|tinyurl\\.com|tiny\\.cc|lc\\.chat|is\\.gd|soo\\.gd|s2r\\.co|clicky\\.me|budrul\\.com|bc\\.vc|uguu\\.se).*")) {
anyMatchSpam = true;
return;
}