Modify to fix comments

This commit is contained in:
Félix Suárez 2024-03-08 15:56:10 -06:00
parent 16e6755214
commit d24d2ed9c8
1 changed files with 3 additions and 3 deletions

View File

@ -103,9 +103,9 @@ $playAsteroids = (bool) get_parameter('playAsteroids', false);
if ($get_comments === true) {
global $config;
$event = json_decode(io_safe_output(base64_decode(get_parameter('event', ''))), true);
$event = json_decode(base64_decode(get_parameter('event', '')), true);
$filter = json_decode(io_safe_output(base64_decode(get_parameter('filter', ''))), true);
$default_hour = (int) $filter['event_view_hr'];
if (isset($config['max_hours_old_event_comment']) === true
&& empty($config['max_hours_old_event_comment']) === false
@ -1515,7 +1515,7 @@ if ($add_comment === true) {
$node = new Node($server_id);
$node->connect();
}
echo($eventId);
$return = events_comment(
$eventId,
$comment,