From c615b53a7e929e2d3f47b2184aa41ffa31c8a680 Mon Sep 17 00:00:00 2001 From: evazion Date: Thu, 9 Aug 2018 12:49:40 -0500 Subject: [PATCH] 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. --- app/models/tag_relationship.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/models/tag_relationship.rb b/app/models/tag_relationship.rb index b7824fb4d..649f2bbad 100644 --- a/app/models/tag_relationship.rb +++ b/app/models/tag_relationship.rb @@ -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?