Fix #4035: The Related Tag JSON endpoint is returning the wrong information

* Fix /related_tags.json to return a list of tags in the `other_wikis` field.

* Add support for /related_tags.xml.
This commit is contained in:
evazion
2019-01-07 13:30:10 -06:00
parent 04d5b16da7
commit 5c54c61d65
4 changed files with 19 additions and 14 deletions

View File

@@ -4,11 +4,7 @@ class RelatedTagsController < ApplicationController
def show
@query = RelatedTagQuery.new(query: params[:query], category: params[:category], user: CurrentUser.user)
respond_with(@query) do |format|
format.json do
render :json => @query.to_json
end
end
respond_with(@query)
end
def update