diff --git a/app/controllers/df/core/thumb_controller.rb b/app/controllers/df/core/thumb_controller.rb index 9767054..36097d4 100644 --- a/app/controllers/df/core/thumb_controller.rb +++ b/app/controllers/df/core/thumb_controller.rb @@ -2,7 +2,10 @@ module ::Df::Core class ThumbController < ::ApplicationController layout false - skip_before_filter :preload_json, :check_xhr + # 2018-01-10 + # "`skip_before_filter` is deprecated, I need to replace it with `skip_before_action`": + # https://github.com/discourse-pro/df-core/issues/4 + skip_before_action :preload_json, :check_xhr def index original = params[:original] upload = Upload.find_by(sha1: original) || Upload.find_by(url: original) diff --git a/plugin.rb b/plugin.rb index 9bb5598..77f0265 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,6 +1,6 @@ # name: df-core # about: A common functionality of my Discourse plugins. -# version: 1.2.5 +# version: 1.2.6 # authors: Dmitry Fedyuk # url: https://discourse.pro #register_asset 'javascripts/lib/sprintf.js'