Project

General

Profile

Patch #39894 ยป 0001-Explicitly-render-a-404-on-non-JS-requests-to-watche.patch

Holger Just, 2023-12-20 18:01

View differences:

app/controllers/watchers_controller.rb
32 32
  accept_api_auth :create, :destroy
33 33

  
34 34
  def new
35
    @users = users_for_new_watcher
35
    respond_to do |format|
36
      format.html { render_404 }
37
      format.js do
38
        @users = users_for_new_watcher
39
      end
40
    end
36 41
  end
37 42

  
38 43
  def create
    (1-1/1)