diff --git a/keyserver/src/creators/farcaster-channel-tag-creator.js b/keyserver/src/creators/farcaster-channel-tag-creator.js --- a/keyserver/src/creators/farcaster-channel-tag-creator.js +++ b/keyserver/src/creators/farcaster-channel-tag-creator.js @@ -2,6 +2,7 @@ import uuid from 'uuid'; +import { DISABLE_TAGGING_FARCASTER_CHANNEL } from 'lib/shared/community-utils.js'; import type { CreateOrUpdateFarcasterChannelTagRequest, CreateOrUpdateFarcasterChannelTagResponse, @@ -23,6 +24,10 @@ ): Promise { const { commCommunityID, farcasterChannelID } = request; + if (DISABLE_TAGGING_FARCASTER_CHANNEL) { + throw new ServerError('internal_error'); + } + const blobDownload = await getFarcasterChannelTagBlob(farcasterChannelID); if (blobDownload.found) { diff --git a/lib/shared/community-utils.js b/lib/shared/community-utils.js new file mode 100644 --- /dev/null +++ b/lib/shared/community-utils.js @@ -0,0 +1,5 @@ +// @flow + +const DISABLE_TAGGING_FARCASTER_CHANNEL = true; + +export { DISABLE_TAGGING_FARCASTER_CHANNEL }; diff --git a/native/components/community-actions-button.react.js b/native/components/community-actions-button.react.js --- a/native/components/community-actions-button.react.js +++ b/native/components/community-actions-button.react.js @@ -7,6 +7,7 @@ import { useSafeAreaInsets } from 'react-native-safe-area-context'; import { primaryInviteLinksSelector } from 'lib/selectors/invite-links-selectors.js'; +import { DISABLE_TAGGING_FARCASTER_CHANNEL } from 'lib/shared/community-utils.js'; import { useThreadHasPermission } from 'lib/shared/thread-utils.js'; import type { ThreadInfo } from 'lib/types/minimally-encoded-thread-permissions-types.js'; import { threadPermissions } from 'lib/types/thread-permission-types.js'; @@ -120,6 +121,7 @@ } const canTagFarcasterChannel = + !DISABLE_TAGGING_FARCASTER_CHANNEL && fid && community.type !== threadTypes.GENESIS && (usingCommServicesAccessToken || __DEV__);