diff --git a/templates/store/snap-details/_report_snap_modal.html b/templates/store/snap-details/_report_snap_modal.html index 9dd705c801..33d4336aac 100644 --- a/templates/store/snap-details/_report_snap_modal.html +++ b/templates/store/snap-details/_report_snap_modal.html @@ -50,6 +50,10 @@
+
+ + +

In submitting this form, I confirm that I have read and agree to Canonical’s Privacy Notice and Privacy Policy.

diff --git a/webapp/store/snap_details_views.py b/webapp/store/snap_details_views.py index 8fb29530bb..2b5cf40793 100644 --- a/webapp/store/snap_details_views.py +++ b/webapp/store/snap_details_views.py @@ -561,6 +561,10 @@ def report_snap(): fields = flask.request.form + # If the honeypot is activated (hidden field populated + # silently reject to avoid spam + if "confirm" in fields: + return flask.jsonify({"ok": True}), 200 payload = { "snap_name": fields.get("snap_name", ""), "reason": fields.get("reason", ""),