Small error in "Preventing Spam with an API" chapter #50364
Unanswered
MaximumRGB
asked this question in
Symfony Book: The Fast Track
Replies: 1 comment
-
If you have encountered an error in a specific chapter or resource, I recommend reaching out to the provider of the material directly. They will be able to address any issues or provide clarification regarding the content you are referring to. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://symfony.com/doc/current/the-fast-track/en/16-spam.html
The API call response (endpoint https://{AKISMET_KEY}.rest.akismet.com/1.1/comment-check) is true if it finds a comment to be spam. However, there is no x-akismet-pro-tip header. So, the getSpamScore() method does not return 2, even if comment_author='akismet-guaranteed-spam' or comment_author_email='[email protected]'.
Beta Was this translation helpful? Give feedback.
All reactions