mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Deprecate Category#url_with_id in favor of Category#url (#9972)
This commit is contained in:
@@ -9,7 +9,7 @@ class CategoryHashtagsController < ApplicationController
|
||||
ids = category_slugs.map { |category_slug| Category.query_from_hashtag_slug(category_slug).try(:id) }
|
||||
|
||||
valid_categories = Category.secured(guardian).where(id: ids).map do |category|
|
||||
{ slug: category.hashtag_slug, url: category.url_with_id }
|
||||
{ slug: category.hashtag_slug, url: category.url }
|
||||
end.compact
|
||||
|
||||
render json: { valid: valid_categories }
|
||||
|
||||
Reference in New Issue
Block a user