Skip to content

Commit ad36df8

Browse files
authored
Revert tag lookup query (forem#22746)
1 parent 4252403 commit ad36df8

File tree

1 file changed

+1
-1
lines changed
  • app/services/articles/feeds

1 file changed

+1
-1
lines changed

app/services/articles/feeds/tag.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Tag
44
def self.call(tag = nil, number_of_articles: Article::DEFAULT_FEED_PAGINATION_WINDOW_SIZE, page: 1)
55
articles =
66
if tag.present?
7-
Article.cached_tagged_with_any(tag)
7+
::Tag.find_by(name: tag).articles
88
else
99
Article.all
1010
end

0 commit comments

Comments
 (0)