diff --git a/src/views/communities/components/community-create-modal.tsx b/src/views/communities/components/community-create-modal.tsx
index 13944e29e..8f6d3e820 100644
--- a/src/views/communities/components/community-create-modal.tsx
+++ b/src/views/communities/components/community-create-modal.tsx
@@ -54,7 +54,7 @@ export type FormValues = {
mods: string[];
relays: string[];
links: ([string] | [string, string])[];
- ranking: string;
+ // ranking: string;
};
export default function CommunityCreateModal({
@@ -90,12 +90,12 @@ export default function CommunityCreateModal({
mods: account ? [account.pubkey] : [],
relays: [],
links: [],
- ranking: "votes",
+ // ranking: "votes",
},
});
watch("mods");
- watch("ranking");
+ // watch("ranking");
watch("banner");
watch("links");
watch("relays");
@@ -278,7 +278,7 @@ export default function CommunityCreateModal({
-
+ {/*
Default Raking
The default way posts are ranked when viewing the community
{errors.ranking?.message && {errors.ranking?.message}}
-
+ */}
Relays
diff --git a/src/views/communities/index.tsx b/src/views/communities/index.tsx
index 82216f58a..c094d3d5a 100644
--- a/src/views/communities/index.tsx
+++ b/src/views/communities/index.tsx
@@ -47,7 +47,7 @@ function CommunitiesHomePage() {
for (const pubkey of values.mods) draft.tags.push(["p", pubkey, "", "moderator"]);
for (const url of values.relays) draft.tags.push(["relay", url]);
for (const [url, name] of values.links) draft.tags.push(name ? ["r", url, name] : ["r", url]);
- if (values.ranking) draft.tags.push(["rank_mode", values.ranking]);
+ // if (values.ranking) draft.tags.push(["rank_mode", values.ranking]);
const signed = await requestSignature(draft);
new NostrPublishAction(
diff --git a/src/views/community/components/community-edit-modal.tsx b/src/views/community/components/community-edit-modal.tsx
index 35f75841e..aa991bd25 100644
--- a/src/views/community/components/community-edit-modal.tsx
+++ b/src/views/community/components/community-edit-modal.tsx
@@ -1,5 +1,5 @@
import { useMemo } from "react";
-import { ModalProps, useDisclosure, useToast } from "@chakra-ui/react";
+import { ModalProps, useToast } from "@chakra-ui/react";
import dayjs from "dayjs";
import { DraftNostrEvent, NostrEvent } from "../../../types/nostr-event";
@@ -11,7 +11,6 @@ import {
getCommunityLinks,
getCommunityMods,
getCommunityName,
- getCommunityRanking,
getCommunityRelays,
getCommunityRules,
} from "../../../helpers/nostr/communities";
@@ -40,7 +39,7 @@ export default function CommunityEditModal({
mods: getCommunityMods(community) || [],
relays: getCommunityRelays(community) || [],
links: getCommunityLinks(community) || [],
- ranking: getCommunityRanking(community) || "votes",
+ // ranking: getCommunityRanking(community) || "votes",
}),
[community],
);
@@ -67,7 +66,7 @@ export default function CommunityEditModal({
for (const url of values.relays) draft.tags.push(["relay", url]);
for (const [url, name] of values.links) draft.tags.push(name ? ["r", url, name] : ["r", url]);
- if (values.ranking) draft.tags.push(["rank_mode", values.ranking]);
+ // if (values.ranking) draft.tags.push(["rank_mode", values.ranking]);
const signed = await requestSignature(draft);
new NostrPublishAction(