mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Flaky test
The previous solution was not always working, I believe this one will be consistent.
This commit is contained in:
@@ -10,7 +10,7 @@ class CategoryHashtagsController < ApplicationController
|
||||
|
||||
slugs_and_urls = {}
|
||||
|
||||
Category.secured(guardian).where(id: ids).each do |category|
|
||||
Category.secured(guardian).where(id: ids).order(:id).each do |category|
|
||||
slugs_and_urls[category.slug] ||= category.url
|
||||
slugs_and_urls[category.slug_path.last(2).join(':')] ||= category.url
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user