]> Untitled Git - lemmy-ui.git/commitdiff
Allow adding and removing remote mods
authorFelix Ableitner <me@nutomic.com>
Mon, 22 Mar 2021 13:18:46 +0000 (14:18 +0100)
committerFelix Ableitner <me@nutomic.com>
Mon, 22 Mar 2021 13:18:46 +0000 (14:18 +0100)
src/shared/components/post-listing.tsx

index 1e969611e5f8b2e91da911af70d15bb9247759cf..2c08597d41f56d6ff5fce5ccce1293f05acfe804 100644 (file)
@@ -772,8 +772,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
                         {i18n.t("unban")}
                       </button>
                     ))}
-                  {!post_view.creator_banned_from_community &&
-                    post_view.creator.local && (
+                  {!post_view.creator_banned_from_community && (
                       <button
                         class="btn btn-link btn-animate text-muted py-0"
                         onClick={linkEvent(this, this.handleAddModToCommunity)}
@@ -793,7 +792,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
               {/* Community creators and admins can transfer community to another mod */}
               {(this.amCommunityCreator || this.canAdmin) &&
                 this.isMod &&
-                post_view.creator.local &&
                 (!this.state.showConfirmTransferCommunity ? (
                   <button
                     class="btn btn-link btn-animate text-muted py-0"