{UserService.Instance.myUserInfo ? (
diff --git a/src/shared/components/comment/comment-node.tsx b/src/shared/components/comment/comment-node.tsx
index c2223dfb..c99d9834 100644
--- a/src/shared/components/comment/comment-node.tsx
+++ b/src/shared/components/comment/comment-node.tsx
@@ -198,7 +198,7 @@ export class CommentNode extends Component
{
}
componentWillReceiveProps(
- nextProps: Readonly<{ children?: InfernoNode } & CommentNodeProps>
+ nextProps: Readonly<{ children?: InfernoNode } & CommentNodeProps>,
): void {
if (!deepEqual(this.props, nextProps)) {
this.setState({
@@ -250,27 +250,27 @@ export class CommentNode extends Component {
const canMod_ = canMod(
cv.creator.id,
this.props.moderators,
- this.props.admins
+ this.props.admins,
);
const canModOnSelf = canMod(
cv.creator.id,
this.props.moderators,
this.props.admins,
UserService.Instance.myUserInfo,
- true
+ true,
);
const canAdmin_ = canAdmin(cv.creator.id, this.props.admins);
const canAdminOnSelf = canAdmin(
cv.creator.id,
this.props.admins,
UserService.Instance.myUserInfo,
- true
+ true,
);
const isMod_ = isMod(cv.creator.id, this.props.moderators);
const isAdmin_ = isAdmin(cv.creator.id, this.props.admins);
const amCommunityCreator_ = amCommunityCreator(
cv.creator.id,
- this.props.moderators
+ this.props.moderators,
);
const moreRepliesBorderColor = this.props.node.depth
@@ -337,7 +337,7 @@ export class CommentNode extends Component {
{
this.props.allLanguages.find(
- lang => lang.id === cv.comment.language_id
+ lang => lang.id === cv.comment.language_id,
)?.name
}
@@ -374,7 +374,7 @@ export class CommentNode extends Component {
onReplyCancel={this.handleReplyCancel}
disabled={this.props.locked}
finished={this.props.finished.get(
- this.props.node.comment_view.comment.id
+ this.props.node.comment_view.comment.id,
)}
focus
allLanguages={this.props.allLanguages}
@@ -472,13 +472,13 @@ export class CommentNode extends Component {
className="btn btn-link btn-animate text-muted"
onClick={linkEvent(
this,
- this.handleShowReportDialog
+ this.handleShowReportDialog,
)}
data-tippy-content={I18NextService.i18n.t(
- "show_report_dialog"
+ "show_report_dialog",
)}
aria-label={I18NextService.i18n.t(
- "show_report_dialog"
+ "show_report_dialog",
)}
>
@@ -487,10 +487,10 @@ export class CommentNode extends Component {
className="btn btn-link btn-animate text-muted"
onClick={linkEvent(
this,
- this.handleBlockPerson
+ this.handleBlockPerson,
)}
data-tippy-content={I18NextService.i18n.t(
- "block_user"
+ "block_user",
)}
aria-label={I18NextService.i18n.t("block_user")}
>
@@ -531,7 +531,7 @@ export class CommentNode extends Component {
className="btn btn-link btn-animate text-muted"
onClick={linkEvent(this, this.handleViewSource)}
data-tippy-content={I18NextService.i18n.t(
- "view_source"
+ "view_source",
)}
aria-label={I18NextService.i18n.t("view_source")}
>
@@ -548,7 +548,7 @@ export class CommentNode extends Component {
className="btn btn-link btn-animate text-muted"
onClick={linkEvent(this, this.handleEditClick)}
data-tippy-content={I18NextService.i18n.t(
- "edit"
+ "edit",
)}
aria-label={I18NextService.i18n.t("edit")}
>
@@ -558,7 +558,7 @@ export class CommentNode extends Component {
className="btn btn-link btn-animate text-muted"
onClick={linkEvent(
this,
- this.handleDeleteComment
+ this.handleDeleteComment,
)}
data-tippy-content={
!cv.comment.deleted
@@ -588,7 +588,7 @@ export class CommentNode extends Component {
className="btn btn-link btn-animate text-muted"
onClick={linkEvent(
this,
- this.handleDistinguishComment
+ this.handleDistinguishComment,
)}
data-tippy-content={
!cv.comment.distinguished
@@ -619,7 +619,7 @@ export class CommentNode extends Component {
className="btn btn-link btn-animate text-muted"
onClick={linkEvent(
this,
- this.handleModRemoveShow
+ this.handleModRemoveShow,
)}
aria-label={I18NextService.i18n.t("remove")}
>
@@ -630,7 +630,7 @@ export class CommentNode extends Component {
className="btn btn-link btn-animate text-muted"
onClick={linkEvent(
this,
- this.handleRemoveComment
+ this.handleRemoveComment,
)}
aria-label={I18NextService.i18n.t("restore")}
>
@@ -652,14 +652,14 @@ export class CommentNode extends Component {
className="btn btn-link btn-animate text-muted"
onClick={linkEvent(
this,
- this.handleModBanFromCommunityShow
+ this.handleModBanFromCommunityShow,
)}
aria-label={I18NextService.i18n.t(
- "ban_from_community"
+ "ban_from_community",
)}
>
{I18NextService.i18n.t(
- "ban_from_community"
+ "ban_from_community",
)}
) : (
@@ -667,7 +667,7 @@ export class CommentNode extends Component {
className="btn btn-link btn-animate text-muted"
onClick={linkEvent(
this,
- this.handleBanPersonFromCommunity
+ this.handleBanPersonFromCommunity,
)}
aria-label={I18NextService.i18n.t("unban")}
>
@@ -684,13 +684,13 @@ export class CommentNode extends Component {
className="btn btn-link btn-animate text-muted"
onClick={linkEvent(
this,
- this.handleShowConfirmAppointAsMod
+ this.handleShowConfirmAppointAsMod,
)}
aria-label={
isMod_
? I18NextService.i18n.t("remove_as_mod")
: I18NextService.i18n.t(
- "appoint_as_mod"
+ "appoint_as_mod",
)
}
>
@@ -703,7 +703,7 @@ export class CommentNode extends Component {
@@ -330,7 +330,7 @@ export class CommunityForm extends Component<
handleCommunityPostingRestrictedToMods(i: CommunityForm, event: any) {
i.setState(
- s => ((s.form.posting_restricted_to_mods = event.target.checked), s)
+ s => ((s.form.posting_restricted_to_mods = event.target.checked), s),
);
}
diff --git a/src/shared/components/community/community.tsx b/src/shared/components/community/community.tsx
index f89eb832..85b90ff0 100644
--- a/src/shared/components/community/community.tsx
+++ b/src/shared/components/community/community.tsx
@@ -570,7 +570,7 @@ export class Community extends Component<
};
this.props.history.push(
- `/c/${this.props.match.params.name}${getQueryString(queryParams)}`
+ `/c/${this.props.match.params.name}${getQueryString(queryParams)}`,
);
await this.fetchData();
@@ -785,7 +785,7 @@ export class Community extends Component<
async handleTransferCommunity(form: TransferCommunity) {
const transferCommunityRes = await HttpService.client.transferCommunity(
- form
+ form,
);
toast(I18NextService.i18n.t("transfer_community"));
this.updateCommunityFull(transferCommunityRes);
@@ -819,14 +819,14 @@ export class Community extends Component<
s.postsRes.data.posts
.filter(c => c.creator.id == banRes.data.person_view.person.id)
.forEach(
- c => (c.creator_banned_from_community = banRes.data.banned)
+ c => (c.creator_banned_from_community = banRes.data.banned),
);
}
if (s.commentsRes.state == "success") {
s.commentsRes.data.comments
.filter(c => c.creator.id == banRes.data.person_view.person.id)
.forEach(
- c => (c.creator_banned_from_community = banRes.data.banned)
+ c => (c.creator_banned_from_community = banRes.data.banned),
);
}
return s;
@@ -886,7 +886,7 @@ export class Community extends Component<
if (s.commentsRes.state == "success" && res.state == "success") {
s.commentsRes.data.comments = editComment(
res.data.comment_view,
- s.commentsRes.data.comments
+ s.commentsRes.data.comments,
);
s.finished.set(res.data.comment_view.comment.id, true);
}
@@ -902,7 +902,7 @@ export class Community extends Component<
// Set finished for the parent
s.finished.set(
getCommentParentId(res.data.comment_view.comment) ?? 0,
- true
+ true,
);
}
return s;
@@ -914,7 +914,7 @@ export class Community extends Component<
if (s.commentsRes.state == "success" && res.state == "success") {
s.commentsRes.data.comments = editWith(
res.data.comment_reply_view,
- s.commentsRes.data.comments
+ s.commentsRes.data.comments,
);
}
return s;
@@ -926,7 +926,7 @@ export class Community extends Component<
if (s.postsRes.state == "success" && res.state == "success") {
s.postsRes.data.posts = editPost(
res.data.post_view,
- s.postsRes.data.posts
+ s.postsRes.data.posts,
);
}
return s;
diff --git a/src/shared/components/community/sidebar.tsx b/src/shared/components/community/sidebar.tsx
index ec454de1..426598a1 100644
--- a/src/shared/components/community/sidebar.tsx
+++ b/src/shared/components/community/sidebar.tsx
@@ -79,7 +79,7 @@ export class Sidebar extends Component