mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 20:08:26 +00: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)
|
if text = I18n.t("reviewables.reasons.#{object.reason}", default: nil)
|
||||||
# Create a convenient link to any site settings if the user is staff
|
# 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|
|
text.gsub!(/`[a-z_]+`/) do |m|
|
||||||
if scope.is_staff?
|
if scope.is_staff?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user