Merge branch 'main' of https://github.com/lemmynet/lemmy into main
This commit is contained in:
commit
410edc1df3
2 changed files with 41 additions and 35 deletions
4
ui/src/components/comment-node.tsx
vendored
4
ui/src/components/comment-node.tsx
vendored
|
@ -475,6 +475,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
{!node.comment.banned_from_community &&
|
{!node.comment.banned_from_community &&
|
||||||
|
node.comment.creator_local &&
|
||||||
(!this.state.showConfirmAppointAsMod ? (
|
(!this.state.showConfirmAppointAsMod ? (
|
||||||
<button
|
<button
|
||||||
class="btn btn-link btn-animate text-muted"
|
class="btn btn-link btn-animate text-muted"
|
||||||
|
@ -517,6 +518,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
||||||
{/* Community creators and admins can transfer community to another mod */}
|
{/* Community creators and admins can transfer community to another mod */}
|
||||||
{(this.amCommunityCreator || this.canAdmin) &&
|
{(this.amCommunityCreator || this.canAdmin) &&
|
||||||
this.isMod &&
|
this.isMod &&
|
||||||
|
node.comment.creator_local &&
|
||||||
(!this.state.showConfirmTransferCommunity ? (
|
(!this.state.showConfirmTransferCommunity ? (
|
||||||
<button
|
<button
|
||||||
class="btn btn-link btn-animate text-muted"
|
class="btn btn-link btn-animate text-muted"
|
||||||
|
@ -579,6 +581,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
{!node.comment.banned &&
|
{!node.comment.banned &&
|
||||||
|
node.comment.creator_local &&
|
||||||
(!this.state.showConfirmAppointAsAdmin ? (
|
(!this.state.showConfirmAppointAsAdmin ? (
|
||||||
<button
|
<button
|
||||||
class="btn btn-link btn-animate text-muted"
|
class="btn btn-link btn-animate text-muted"
|
||||||
|
@ -621,6 +624,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
||||||
{/* Site Creator can transfer to another admin */}
|
{/* Site Creator can transfer to another admin */}
|
||||||
{this.amSiteCreator &&
|
{this.amSiteCreator &&
|
||||||
this.isAdmin &&
|
this.isAdmin &&
|
||||||
|
node.comment.creator_local &&
|
||||||
(!this.state.showConfirmTransferSite ? (
|
(!this.state.showConfirmTransferSite ? (
|
||||||
<button
|
<button
|
||||||
class="btn btn-link btn-animate text-muted"
|
class="btn btn-link btn-animate text-muted"
|
||||||
|
|
8
ui/src/components/post-listing.tsx
vendored
8
ui/src/components/post-listing.tsx
vendored
|
@ -756,7 +756,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
)}
|
)}
|
||||||
</li>
|
</li>
|
||||||
)}
|
)}
|
||||||
{!post.banned_from_community && (
|
{!post.banned_from_community && post.creator_local && (
|
||||||
<li className="list-inline-item">
|
<li className="list-inline-item">
|
||||||
<span
|
<span
|
||||||
class="pointer"
|
class="pointer"
|
||||||
|
@ -774,7 +774,9 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{/* Community creators and admins can transfer community to another mod */}
|
{/* Community creators and admins can transfer community to another mod */}
|
||||||
{(this.amCommunityCreator || this.canAdmin) && this.isMod && (
|
{(this.amCommunityCreator || this.canAdmin) &&
|
||||||
|
this.isMod &&
|
||||||
|
post.creator_local && (
|
||||||
<li className="list-inline-item">
|
<li className="list-inline-item">
|
||||||
{!this.state.showConfirmTransferCommunity ? (
|
{!this.state.showConfirmTransferCommunity ? (
|
||||||
<span
|
<span
|
||||||
|
@ -835,7 +837,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
)}
|
)}
|
||||||
</li>
|
</li>
|
||||||
)}
|
)}
|
||||||
{!post.banned && (
|
{!post.banned && post.creator_local && (
|
||||||
<li className="list-inline-item">
|
<li className="list-inline-item">
|
||||||
<span
|
<span
|
||||||
class="pointer"
|
class="pointer"
|
||||||
|
|
Loading…
Reference in a new issue