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
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
194
Issues
194
List
Boards
Labels
Service Desk
Milestones
Merge Requests
27
Merge Requests
27
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
List
Container Registry
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
Commits
957e7e55
Commit
957e7e55
authored
1 hour ago
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): groups conversations issue
parent
5845f667
1 merge request
!289
[Sprint/KiltedKoala] (fix): groups conversations issue
Pipeline
#74164702
passed with stages
in 12 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
comments.php
Controllers/api/v1/comments.php
+2
-9
No files found.
Controllers/api/v1/comments.php
View file @
957e7e55
...
...
@@ -157,12 +157,12 @@ class comments implements Interfaces\Api
]);
}
if
(
!
$entity
->
getAllowComments
())
{
if
(
method_exists
(
$entity
,
'getAllowComments'
)
&&
!
$entity
->
getAllowComments
())
{
return
Factory
::
response
([
'status'
=>
'error'
,
'message'
=>
'Comments are disabled for this post'
]);
}
}
if
(
!
$_POST
[
'comment'
]
&&
!
$_POST
[
'attachment_guid'
])
{
return
Factory
::
response
([
...
...
@@ -171,13 +171,6 @@ class comments implements Interfaces\Api
]);
}
if
(
$entity
instanceof
Entities\Activity
&&
!
$entity
->
commentsEnabled
)
{
return
Factory
::
response
([
'status'
=>
'error'
,
'message'
=>
'Comments are disabled for this post'
]);
}
/*if (!Security\ACL::_()->write($entity)) {
return Factory::response([
'status' => 'error',
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment