Skip to content

Conversation

@Shaswat975
Copy link
Collaborator

#71

$formattedNotice = [
"title" => $notice["title"],
"date" => date('m-d-Y', strtotime($notice["date"])),
"message" => wordwrap($notice["message"], $CHAR_WRAP)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to wordwrap in JSON output since that will be handled by whatever is calling the API. Just add the message body directly here.

Suggested change
"message" => wordwrap($notice["message"], $CHAR_WRAP)
"message" => $notice["message"]

Also remove any entries of $CHAR_WRAP from the rest of the file.

@hakasapl hakasapl merged commit d9628d7 into UnityHPC:main Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants