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
204
Issues
204
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
c5d27f85
Commit
c5d27f85
authored
4 hours ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): comment on reminds should not go to remind_object
parent
3b7aafa9
master
No related merge requests found
Pipeline
#74597978
failed with stages
in 13 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
comments.php
Controllers/api/v1/comments.php
+3
-3
No files found.
Controllers/api/v1/comments.php
View file @
c5d27f85
...
...
@@ -146,9 +146,9 @@ class comments implements Interfaces\Api
default
:
$entity
=
Core\Di\Di
::
_
()
->
get
(
'EntitiesBuilder'
)
->
single
(
$pages
[
0
]);
if
(
$entity
instanceof
Entities\Activity
&&
$entity
->
remind_object
)
{
$entity
=
(
object
)
$entity
->
remind_object
;
}
//
if ($entity instanceof Entities\Activity && $entity->remind_object) {
//
$entity = (object) $entity->remind_object;
//
}
if
(
!
$pages
[
0
]
||
!
$entity
||
$entity
->
type
==
'comment'
)
{
return
Factory
::
response
([
...
...
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