Add a setting to automatically unfold all content warnings

This commit is contained in:
Thibaut Girka
2018-08-28 14:10:26 +02:00
committed by ThibG
parent 130bdb5ee8
commit 9d2739d74d
5 changed files with 31 additions and 7 deletions

View File

@@ -56,6 +56,7 @@ export default class Status extends ImmutablePureComponent {
state = {
isCollapsed: false,
autoCollapsed: false,
isExpanded: this.props.settings.getIn(['content_warnings', 'auto_unfold']),
}
// Avoid checking props that are functions (and whose equality will always