Use SpamError class instead of error.name for spam detection

The following discussion from !17553 (merged) should be addressed:

  • @winh started a discussion: (+1 comment)

    We can consider introducing a custom error class to do

              if (error instanceof SpamError) {

    instead. However this would be out of scope here.

Edited Oct 14, 2019 by Inactive Account
Assignee Loading
Time tracking Loading