about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-20 01:58:33 -0500
committerGitHub <noreply@github.com>2023-02-20 07:58:33 +0100
commitaf4c95100c519ea63c9d8a3e9a3f900091933ce2 (patch)
treea3345d5a909a2d55932df66dd73ddf32a6525900 /app
parenta9472f8ff15523c13ab7e32592f11a6c51cc14e3 (diff)
Autofix Rubocop Style/FormatString (#23743)
Diffstat (limited to 'app')
-rw-r--r--app/serializers/rest/privacy_policy_serializer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/rest/privacy_policy_serializer.rb b/app/serializers/rest/privacy_policy_serializer.rb
index f0572e714..57a67abf3 100644
--- a/app/serializers/rest/privacy_policy_serializer.rb
+++ b/app/serializers/rest/privacy_policy_serializer.rb
@@ -8,7 +8,7 @@ class REST::PrivacyPolicySerializer < ActiveModel::Serializer
   end
 
   def content
-    markdown.render(object.text % { domain: Rails.configuration.x.local_domain })
+    markdown.render(format(object.text, domain: Rails.configuration.x.local_domain))
   end
 
   private