We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5bfe3f commit 0a807dcCopy full SHA for 0a807dc
src/controllers/Comment/Create.php
@@ -7,6 +7,7 @@
7
use \BNETDocs\Libraries\Controller;
8
use \BNETDocs\Libraries\Exceptions\CommentNotFoundException;
9
use \BNETDocs\Libraries\Exceptions\UnspecifiedViewException;
10
+use \BNETDocs\Libraries\Logger;
11
use \BNETDocs\Libraries\Router;
12
use \BNETDocs\Libraries\UserSession;
13
use \BNETDocs\Models\Comment\Create as CreateModel;
@@ -87,6 +88,11 @@ protected function createComment(Router &$router, CreateModel &$model) {
87
88
"parent_type" => $p_type
89
];
90
91
+ Logger::logEvent(
92
+ "comment_created_news", $model->user_session->user_id,
93
+ getenv("REMOTE_ADDR"), json_encode($model->response)
94
+ );
95
+
96
return 303;
97
}
98
0 commit comments