Fix broken "Link to alias" / "Link to implication" forum links.

/tag_implications was changed to filter out inactive implications by
default when the `status` param wasn't given.

This broke "Link to implication":/tag_implications?search[id]=NNN links
inside pending implication requests in forum posts. These links now
return an empty search instead of the pending implication.

Hiding inactive aliases/implications by default also changed the API behavior.
This commit is contained in:
evazion
2018-08-09 12:49:40 -05:00
parent abe8b9c071
commit c615b53a7e

View File

@@ -104,8 +104,6 @@ class TagRelationship < ApplicationRecord
if params[:status].present?
q = q.status_matches(params[:status])
else
q = q.active
end
if params[:category].present?