FIX: For API consumption it's easier if the lings are the full URL

This commit is contained in:
Robin Ward 2019-05-31 14:04:34 -04:00
parent ff17177bf9
commit 74eaa5e7ec

View File

@ -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?