We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07e8d50 commit 329834fCopy full SHA for 329834f
php-config/Emergence/Mueller/Investigator.config.d/laddr.php
@@ -15,10 +15,20 @@
15
}
16
];
17
18
-Investigator::$tests['has-comment'] = [
19
- 'points' => -10,
+Investigator::$tests['has-comment-url'] = [
+ 'points' => -100,
20
'function' => function (IUser $User, array &$userCache) {
21
- return count(Investigator::getUserComments($User, $userCache)) > 0;
+
22
+ foreach (Investigator::getUserComments($User, $userCache) as $Comment) {
23
+ if (
24
+ stripos($Comment['Message'], 'http://') !== false
25
+ || stripos($Comment['Message'], 'https://') !== false
26
+ ) {
27
+ return true;
28
+ }
29
30
31
+ return false;
32
33
34
0 commit comments