Commit c5d27f85 authored by Mark Harding's avatar Mark Harding
Browse files

(fix): comment on reminds should not go to remind_object

parent 3b7aafa9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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([