mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:01:25 +08:00
Don't look for a JS format. IE11 seems to not request it even with a
`<script>` tag.
This commit is contained in:
@ -38,9 +38,7 @@ class EmbedController < ApplicationController
|
|||||||
by_url[url] = I18n.t('embed.replies', count: te.topic.posts_count - 1)
|
by_url[url] = I18n.t('embed.replies', count: te.topic.posts_count - 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
respond_to do |format|
|
render json: {counts: by_url}, callback: params[:callback]
|
||||||
format.js { render json: {counts: by_url}, callback: params[:callback] }
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
Reference in New Issue
Block a user