forked from mirror/monocles_chat
Any link consider spammy
This commit is contained in:
parent
407fb0444c
commit
834c826ef9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue