Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Commercial API endpoint to handle commercial lengths #4141

Merged

Conversation

xel86
Copy link
Contributor

@xel86 xel86 commented Nov 11, 2022

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

Removed client side check for valid commercial lengths and instead let the commercial api endpoint to handle it. They actually do not throw an error back for an invalid length but instead find the closest appropriate length value and returns that length in the response. Sending /commercial 0 does return an error though treating it as a missing required parameter which this is now being handled.

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@xel86 xel86 changed the title Allow Commercial API endpoint to handle invalid commercial lengths Allow Commercial API endpoint to handle commercial lengths Nov 11, 2022
@pajlada pajlada merged commit 46cdb89 into Chatterino:master Nov 11, 2022
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.

None yet

2 participants