summaryrefslogtreecommitdiffstats
path: root/ui/src/components/community.tsx
diff options
context:
space:
mode:
authorDessalines <happydooby@gmail.com>2019-08-11 20:55:09 -0700
committerDessalines <happydooby@gmail.com>2019-08-11 20:55:09 -0700
commit3246d5d670d0d5e10310a90c6fd81a7dc9e97e54 (patch)
tree60bdf51e980fa9abe6fe9f1bae39373452afb155 /ui/src/components/community.tsx
parentc2cb36bfa4bd8e55fbdbde51bd9fbfd2554ccfa4 (diff)
nsfw mostly done, except for settings page.
Diffstat (limited to 'ui/src/components/community.tsx')
-rw-r--r--ui/src/components/community.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx
index 480b909e..b9f9c8b2 100644
--- a/ui/src/components/community.tsx
+++ b/ui/src/components/community.tsx
@@ -37,6 +37,7 @@ export class Community extends Component<any, State> {
number_of_comments: null,
published: null,
removed: null,
+ nsfw: false,
deleted: null,
},
moderators: [],
@@ -105,6 +106,9 @@ export class Community extends Component<any, State> {
{this.state.community.removed &&
<small className="ml-2 text-muted font-italic"><T i18nKey="removed">#</T></small>
}
+ {this.state.community.nsfw &&
+ <small className="ml-2 text-muted font-italic"><T i18nKey="nsfw">#</T></small>
+ }
</h5>
{this.selects()}
<PostListings posts={this.state.posts} />