mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:29:30 +08:00
FIX: better uploads error page
This commit is contained in:
parent
019f954c44
commit
1fd8e426f2
|
@ -55,7 +55,7 @@ class UploadsController < ApplicationController
|
|||
protected
|
||||
|
||||
def render_404
|
||||
render nothing: true, status: 404
|
||||
raise Discourse::NotFound
|
||||
end
|
||||
|
||||
def create_upload(file, url, type)
|
||||
|
|
Loading…
Reference in New Issue
Block a user