diff --git a/app/controllers/embed_controller.rb b/app/controllers/embed_controller.rb index c02e941f563..9e06d008b2a 100644 --- a/app/controllers/embed_controller.rb +++ b/app/controllers/embed_controller.rb @@ -38,9 +38,7 @@ class EmbedController < ApplicationController by_url[url] = I18n.t('embed.replies', count: te.topic.posts_count - 1) end - respond_to do |format| - format.js { render json: {counts: by_url}, callback: params[:callback] } - end + render json: {counts: by_url}, callback: params[:callback] end private