Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
141
Issues
141
List
Boards
Labels
Service Desk
Milestones
Merge Requests
28
Merge Requests
28
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Compare Revisions
f75596ab2d10aa90ac47123e01d69697482b0d14...85de3a3c658d2f0e6c24b34243a32d4a6a064fff
Source
85de3a3c658d2f0e6c24b34243a32d4a6a064fff
Select Git revision
...
Target
f75596ab2d10aa90ac47123e01d69697482b0d14
Select Git revision
Compare
Commits (2)
(chore): bring back channel level spam check for new channels
· 01e1a432
Mark Harding
authored
6 hours ago
01e1a432
(chore): add another blocked domain
· 85de3a3c
Mark Harding
authored
6 hours ago
85de3a3c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
channel.php
Controllers/api/v1/channel.php
+8
-6
Events.php
Core/Security/Events.php
+1
-0
Spam.php
Core/Security/Spam.php
+1
-0
No files found.
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
=
[];
...
...
This diff is collapsed.
Click to expand it.
Core/Security/Events.php
View file @
85de3a3c
...
...
@@ -315,6 +315,7 @@ class Events
'pornopoisk.info'
,
'localmodels.online'
,
'kaikki-mallit.com'
,
'hotswishes.com'
,
];
}
...
...
This diff is collapsed.
Click to expand it.
Core/Security/Spam.php
View file @
85de3a3c
...
...
@@ -401,6 +401,7 @@ class Spam
'pornopoisk.info'
,
'localmodels.online'
,
'kaikki-mallit.com'
,
'hotswishes.com'
,
];
}
...
...
This diff is collapsed.
Click to expand it.