mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
PERF: avoid preloading json in cases where it is not needed
(uploads / avatars / non GET requests)
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
class DraftController < ApplicationController
|
||||
before_filter :ensure_logged_in
|
||||
skip_before_filter :check_xhr
|
||||
# TODO really do we need to skip this?
|
||||
skip_before_filter :check_xhr, :preload_json
|
||||
|
||||
def show
|
||||
seq = params[:sequence] || DraftSequence.current(current_user, params[:draft_key])
|
||||
|
Reference in New Issue
Block a user