forum: fix /forum_posts?search[linked_to] not normalizing tags.

Fix searches like https://danbooru.donmai.us/forum_posts?search[linked_to]=touhou%20
not working because the tag wasn't normalized.
This commit is contained in:
evazion
2020-12-13 00:52:30 -06:00
parent b002bf25f5
commit 71ba45c57c
2 changed files with 6 additions and 1 deletions

View File

@@ -76,6 +76,7 @@ class ForumPostsControllerTest < ActionDispatch::IntegrationTest
should respond_to_search(body_matches: "xxx").with { @forum_post }
should respond_to_search(body_matches: "bababa").with { [] }
should respond_to_search(is_deleted: "true").with { @unrelated_forum }
should respond_to_search(linked_to: "TEST").with { @other_forum }
context "using includes" do
should respond_to_search(topic: {title_matches: "my forum topic"}).with { @forum_post }