Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
303
Merge Requests
39
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
9da8447b
Commit
9da8447b
authored
8 minutes ago
by
Ben Hayward
Browse files
Options
Download
Added in method exists check
parent
4ba8807f
fix/spam-detection-webm-1193
1 merge request
!412
[Sprint/SillySheep](fix): Failing spam detection on staging causing issues when uploading media #1193
Pipeline
#100396271
canceled with stages
in 5 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Core/Security/Spam.php
View file @
9da8447b
...
...
@@ -29,7 +29,9 @@ class Spam
$foundSpam
=
Text
::
strposa
(
$entity
->
getBody
(),
ProhibitedDomains
::
DOMAINS
);
break
;
}
$foundSpam
=
Text
::
strposa
(
$entity
->
getDescription
(),
ProhibitedDomains
::
DOMAINS
);
if
(
method_exists
(
$entity
,
'getDescription'
))
{
$foundSpam
=
Text
::
strposa
(
$entity
->
getDescription
(),
ProhibitedDomains
::
DOMAINS
);
}
break
;
case
'user'
:
$foundSpam
=
Text
::
strposa
(
$entity
->
briefdescription
,
ProhibitedDomains
::
DOMAINS
);
...
...
This diff is collapsed.
Please
register
or
sign in
to comment