Skip to content

Snippet spam

Sean McGivern requested to merge snippet-spam into master

What does this MR do?

Check public snippets for spam.

Weirdly, we allow you to create a 'public' snippet on a private project. That snippet isn't visible to anonymous users, so it won't be checked for spam.

Are there points in the code the reviewer needs to double check?

I think it's pretty straightforward, I just needed to change a bunch of places.

Why was this MR needed?

We're getting a lot of snippet spam.

Screenshots (if relevant)

Sorry, I need to run! There's a 'submit as spam' button on snippets now 🙂

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/26276.

Merge request reports