Fix: 利用規約が表示できない問題 (#999)

This commit is contained in:
KMY(雪あすか) 2025-04-08 20:15:48 +09:00 committed by GitHub
parent a28c80f6e6
commit 1a77619150
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,7 +16,7 @@ class REST::TermsOfServiceSerializer < ActiveModel::Serializer
end end
def content def content
markdown.render(format(object.text, domain: Rails.configuration.x.local_domain)) markdown.render(object.text.gsub(/%{domain}/, Rails.configuration.x.local_domain))
end end
private private