Logging improved
This commit is contained in:
parent
b948b2c7cb
commit
25f45cf116
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ class Relay
|
||||||
$content_cleaned = mb_strtolower(BBCode::toPlaintext($cleaned, false));
|
$content_cleaned = mb_strtolower(BBCode::toPlaintext($cleaned, false));
|
||||||
|
|
||||||
if (strlen($content_cleaned) < strlen($content) / 2) {
|
if (strlen($content_cleaned) < strlen($content) / 2) {
|
||||||
Logger::info('Possible hashtag spam detected - rejected', ['hashtags' => $tags, 'network' => $network, 'url' => $url, 'causer' => $causer, 'body' => $body]);
|
Logger::info('Possible hashtag spam detected - rejected', ['hashtags' => $tags, 'network' => $network, 'url' => $url, 'causer' => $causer, 'content' => $content]);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue