Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
(chore): bring back channel level spam check for new channels
· 01e1a432
Mark Harding
authored
May 28, 2019
01e1a432
(chore): add another blocked domain
· 85de3a3c
Mark Harding
authored
May 28, 2019
85de3a3c
Hide whitespace changes
Inline
Side-by-side
Controllers/api/v1/channel.php
View file @
85de3a3c
...
...
@@ -217,12 +217,14 @@ class channel implements Interfaces\Api
$owner
->
$field
=
$update
[
'tags'
];
}
/*try {
$spam = new Core\Security\Spam();
$spam->check($owner);
} catch (\Exception $e) {
return Factory::response(['status'=>'error', 'message' => $e->getMessage() ]);
}*/
if
(
$owner
->
time_created
>
1559032594
)
{
try
{
$spam
=
new
Core\Security\Spam
();
$spam
->
check
(
$owner
);
}
catch
(
\Exception
$e
)
{
return
Factory
::
response
([
'status'
=>
'error'
,
'message'
=>
$e
->
getMessage
()
]);
}
}
if
(
isset
(
$_POST
[
'social_profiles'
])
&&
is_array
(
$_POST
[
'social_profiles'
]))
{
$profiles
=
[];
...
...
Core/Security/Events.php
View file @
85de3a3c
...
...
@@ -315,6 +315,7 @@ class Events
'pornopoisk.info'
,
'localmodels.online'
,
'kaikki-mallit.com'
,
'hotswishes.com'
,
];
}
...
...
Core/Security/Spam.php
View file @
85de3a3c
...
...
@@ -401,6 +401,7 @@ class Spam
'pornopoisk.info'
,
'localmodels.online'
,
'kaikki-mallit.com'
,
'hotswishes.com'
,
];
}
...
...