Custom privacy policy and custom DMCA configurable through admin

parent 25e461fe
Pipeline #106502383 passed with stage
in 6 minutes and 33 seconds
......@@ -11,6 +11,8 @@ class Form::AdminSettings
site_description
site_extended_description
site_terms
site_privacy_policy
site_dmca
registrations_mode
closed_registrations_message
open_deletion
......
......@@ -8,6 +8,8 @@ class InstancePresenter
:site_description,
:site_extended_description,
:site_terms,
:site_privacy_policy,
:site_dmca,
:closed_registrations_message,
:warrant_canary,
to: Setting
......
- content_for :page_title do
= t('terms.title', instance: site_hostname)
= t('dmca.title')
.content
.box-widget
.rich-formatting
%h2 Copyright Policy
%p
We comply with applicable law in our jurisdiction, in the manner that
seems appropriate to us at our sole discretion, regarding posting of
copyrighted materials and regarding requests for takedowns of
copyrighted materials. If you are requesting that content be removed
because you hold a copyright monopoly on that content, you must submit
a written notice (a "DMCA notice") that meets all the requirements of
the Online Copyright Infringement Liability Limitation Act of the
Digital Millennium Copyright Act (17 U.S.C. § 512) ("DMCA").
%p
If you misrepresent that material or activity on the Website is
infringing your copyright, you may be held liable for damages
(including costs and attorneys' fees) under Section 512(f) of the
DMCA.
%p
Likewise, submissions of "Counter Notices", for material that you
believe was taken down by mistake or misidentification under the above
provision, should follow the requirements of the DMCA.
= @instance_presenter.site_dmca.html_safe.presence || t('dmca.body_html')
%hr
= mail_to Setting.site_contact_email
- content_for :page_title do
= t('terms.title', instance: site_hostname)
= t('privacy_policy.title')
.content
.box-widget
.rich-formatting
%h1 Privacy Policy
%p
#{site_title} makes no promises regarding the privacy of information you
submit to us, via our web site or via any other means. Even if we were
to make such promises, we could never guarantee our ability to keep
them — electronic break-ins and data leaks have happened to companies
with far more resources than we have. Therefore we do not promise any
confidentiality in the first place. If you require strong guarantees
of anonymity or confidentiality, please be aware we cannot make them.
WE ARE NOT LIABLE FOR INFORMATION OTHERS DISCOVER ABOUT YOU THROUGH
#{site_title.upcase}.
= @instance_presenter.site_privacy_policy.html_safe.presence || t('privacy_policy.body_html', site_title: site_title, site_title_upcase: site_title.upcase)
%hr
= mail_to Setting.site_contact_email
......@@ -80,6 +80,8 @@
= f.input :closed_registrations_message, as: :text, wrapper: :with_block_label, label: t('admin.settings.registrations.closed_message.title'), hint: t('admin.settings.registrations.closed_message.desc_html'), input_html: { rows: 8 }
= f.input :site_extended_description, wrapper: :with_block_label, as: :text, label: t('admin.settings.site_description_extended.title'), hint: t('admin.settings.site_description_extended.desc_html'), input_html: { rows: 8 }
= f.input :site_terms, wrapper: :with_block_label, as: :text, label: t('admin.settings.site_terms.title'), hint: t('admin.settings.site_terms.desc_html'), input_html: { rows: 8 }
= f.input :site_privacy_policy, wrapper: :with_block_label, as: :text, label: t('admin.settings.site_privacy_policy.title'), hint: t('admin.settings.site_privacy_policy.desc_html'), input_html: { rows: 8 }
= f.input :site_dmca, wrapper: :with_block_label, as: :text, label: t('admin.settings.site_dmca.title'), hint: t('admin.settings.site_dmca.desc_html'), input_html: { rows: 8 }
= f.input :custom_css, wrapper: :with_block_label, as: :text, input_html: { rows: 8 }, label: t('admin.settings.custom_css.title'), hint: t('admin.settings.custom_css.desc_html')
.fields-group
......
......@@ -428,11 +428,17 @@ en:
site_description_extended:
desc_html: A good place for your code of conduct, rules, guidelines and other things that set your server apart. You can use HTML tags
title: Custom extended information
site_dmca:
desc_html: You can write your own copyright policy. You can use HTML tags.
title: Copyright policy
site_privacy_policy:
desc_html: You can write your own privacy policy. You can use HTML tags.
title: Custom privacy policy
site_short_description:
desc_html: Displayed on homepage and in meta tags. Describe what makes this server special in 1-3 sentences.
title: Tagline
site_terms:
desc_html: You can write your own privacy policy, terms of service or other legalese. You can use HTML tags
desc_html: You can write your own terms of service or other legalese. You can use HTML tags.
title: Custom terms of service
site_title: Server name
thumbnail:
......@@ -570,6 +576,31 @@ en:
people:
one: "%{count} person"
other: "%{count} people"
dmca:
body_html: |
<h1>Copyright Policy</h1>
<p>
We comply with applicable law in our jurisdiction, in the manner that
seems appropriate to us at our sole discretion, regarding posting of
copyrighted materials and regarding requests for takedowns of
copyrighted materials. If you are requesting that content be removed
because you hold a copyright monopoly on that content, you must submit
a written notice (a "DMCA notice") that meets all the requirements of
the Online Copyright Infringement Liability Limitation Act of the
Digital Millennium Copyright Act (17 U.S.C. § 512) ("DMCA").
</p>
<p>
If you misrepresent that material or activity on the Website is
infringing your copyright, you may be held liable for damages
(including costs and attorneys' fees) under Section 512(f) of the
DMCA.
</p>
<p>
Likewise, submissions of "Counter Notices", for material that you
believe was taken down by mistake or misidentification under the above
provision, should follow the requirements of the DMCA.
</p>
title: Copyright Policy
errors:
'403': You don't have permission to view this page.
'404': The page you are looking for isn't here.
......@@ -766,6 +797,21 @@ en:
other: Other
publishing: Publishing
web: Web
privacy_policy:
body_html: |
<h1>Privacy Policy</h1>
<p>
%{site_title} makes no promises regarding the privacy of information you
submit to us, via our web site or via any other means. Even if we were
to make such promises, we could never guarantee our ability to keep
them — electronic break-ins and data leaks have happened to companies
with far more resources than we have. Therefore we do not promise any
confidentiality in the first place. If you require strong guarantees
of anonymity or confidentiality, please be aware we cannot make them.
WE ARE NOT LIABLE FOR INFORMATION OTHERS DISCOVER ABOUT YOU THROUGH
%{site_title_upcase}.
</p>
title: Privacy Policy
relationships:
activity: Account activity
dormant: Dormant
......@@ -910,7 +956,7 @@ en:
sensitive_content: Sensitive content
terms:
body_html: |
<h1>Website Terms of Use</h1>
<h1>Terms of Service</h1>
<p>
By using this web site, you agree to these Terms of Use, to our
<a href="/about/dmca">Copyright Policy</a>, and to our
......@@ -938,7 +984,7 @@ en:
You are liable for what you post, and we are not liable for it.
</li>
</ul>
title: "%{instance} Terms of Service and Privacy Policy"
title: "%{instance} Terms of Service"
themes:
contrast: High contrast
default: Dark
......
......@@ -6,6 +6,8 @@ defaults: &defaults
site_description: ''
site_extended_description: ''
site_terms: ''
site_privacy_policy: ''
site_dmca: ''
site_contact_username: ''
site_contact_email: ''
registrations_mode: 'open'
......@@ -62,6 +64,7 @@ defaults: &defaults
activity_api_enabled: true
peers_api_enabled: true
show_known_fediverse_at_about_page: true
warrant_canary: ''
development:
<<: *defaults
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment