mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 23:54:16 +08:00
FIX: For API consumption it's easier if the lings are the full URL
This commit is contained in:
parent
ff17177bf9
commit
74eaa5e7ec
|
@ -23,7 +23,7 @@ class ReviewableScoreSerializer < ApplicationSerializer
|
|||
|
||||
if text = I18n.t("reviewables.reasons.#{object.reason}", default: nil)
|
||||
# Create a convenient link to any site settings if the user is staff
|
||||
settings_url = "#{Discourse.base_uri}/admin/site_settings/category/all_results?filter="
|
||||
settings_url = "#{Discourse.base_url}/admin/site_settings/category/all_results?filter="
|
||||
|
||||
text.gsub!(/`[a-z_]+`/) do |m|
|
||||
if scope.is_staff?
|
||||
|
|
Loading…
Reference in New Issue
Block a user