Skip to content

Commit

Permalink
webservice: truncate topic at 200 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
jrchamp committed Aug 29, 2024
1 parent b7bff84 commit ded4230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/webservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ private function database_to_api($zoom) {

$data = [
// Process the meeting topic with proper filter.
'topic' => format_text($zoom->name, FORMAT_MOODLE, ['context' => $context, 'para' => false]),
'topic' => substr(format_text($zoom->name, FORMAT_MOODLE, ['context' => $context, 'para' => false]), 0, 200),
'settings' => [
'host_video' => (bool) ($zoom->option_host_video),
'audio' => $zoom->option_audio,
Expand Down

0 comments on commit ded4230

Please sign in to comment.