-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhide-rules.patch
33 lines (31 loc) · 1.75 KB
/
hide-rules.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff --git a/app/javascript/flavours/glitch/features/about/index.jsx b/app/javascript/flavours/glitch/features/about/index.jsx
index 1e0a8666ab..8e8d5d8325 100644
--- a/app/javascript/flavours/glitch/features/about/index.jsx
+++ b/app/javascript/flavours/glitch/features/about/index.jsx
@@ -15,7 +15,6 @@ import Image from 'flavours/glitch/components/image';
const messages = defineMessages({
title: { id: 'column.about', defaultMessage: 'About' },
- rules: { id: 'about.rules', defaultMessage: 'Server rules' },
blocks: { id: 'about.blocks', defaultMessage: 'Moderated servers' },
silenced: { id: 'about.domain_blocks.silenced.title', defaultMessage: 'Limited' },
silencedExplanation: { id: 'about.domain_blocks.silenced.explanation', defaultMessage: 'You will generally not see profiles and content from this server, unless you explicitly look it up or opt into it by following.' },
@@ -158,20 +157,6 @@ class About extends React.PureComponent {
))}
</Section>
- <Section title={intl.formatMessage(messages.rules)}>
- {!isLoading && (server.get('rules').isEmpty() ? (
- <p><FormattedMessage id='about.not_available' defaultMessage='This information has not been made available on this server.' /></p>
- ) : (
- <ol className='rules-list'>
- {server.get('rules').map(rule => (
- <li key={rule.get('id')}>
- <span className='rules-list__text'>{rule.get('text')}</span>
- </li>
- ))}
- </ol>
- ))}
- </Section>
-
<Section title={intl.formatMessage(messages.blocks)} onOpen={this.handleDomainBlocksOpen}>
{domainBlocks.get('isLoading') ? (
<>