mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-02 01:01:14 +00:00
parent
a5569bb470
commit
b9fbfab0c2
1 changed files with 22 additions and 20 deletions
|
@ -163,27 +163,29 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
||||||
? i18n.t("purge_comment")
|
? i18n.t("purge_comment")
|
||||||
: `${i18n.t("purge")} ${cv.creator.name}`;
|
: `${i18n.t("purge")} ${cv.creator.name}`;
|
||||||
|
|
||||||
let canMod_ = canMod(
|
let canMod_ =
|
||||||
cv.creator.id,
|
canMod(cv.creator.id, this.props.moderators, this.props.admins) &&
|
||||||
this.props.moderators,
|
cv.community.local;
|
||||||
this.props.admins
|
let canModOnSelf =
|
||||||
);
|
canMod(
|
||||||
let canModOnSelf = canMod(
|
cv.creator.id,
|
||||||
cv.creator.id,
|
this.props.moderators,
|
||||||
this.props.moderators,
|
this.props.admins,
|
||||||
this.props.admins,
|
UserService.Instance.myUserInfo,
|
||||||
UserService.Instance.myUserInfo,
|
true
|
||||||
true
|
) && cv.community.local;
|
||||||
);
|
let canAdmin_ =
|
||||||
let canAdmin_ = canAdmin(cv.creator.id, this.props.admins);
|
canAdmin(cv.creator.id, this.props.admins) && cv.community.local;
|
||||||
let canAdminOnSelf = canAdmin(
|
let canAdminOnSelf =
|
||||||
cv.creator.id,
|
canAdmin(
|
||||||
this.props.admins,
|
cv.creator.id,
|
||||||
UserService.Instance.myUserInfo,
|
this.props.admins,
|
||||||
true
|
UserService.Instance.myUserInfo,
|
||||||
);
|
true
|
||||||
|
) && cv.community.local;
|
||||||
let isMod_ = isMod(cv.creator.id, this.props.moderators);
|
let isMod_ = isMod(cv.creator.id, this.props.moderators);
|
||||||
let isAdmin_ = isAdmin(cv.creator.id, this.props.admins);
|
let isAdmin_ =
|
||||||
|
isAdmin(cv.creator.id, this.props.admins) && cv.community.local;
|
||||||
let amCommunityCreator_ = amCommunityCreator(
|
let amCommunityCreator_ = amCommunityCreator(
|
||||||
cv.creator.id,
|
cv.creator.id,
|
||||||
this.props.moderators
|
this.props.moderators
|
||||||
|
|
Loading…
Reference in a new issue