diff --git a/.env.defaults b/.env.defaults index 08a090ea0..7dcfcfcce 100644 --- a/.env.defaults +++ b/.env.defaults @@ -18,6 +18,7 @@ SITE_TITLE=lbry.tv SITE_NAME=LBRY SITE_DESCRIPTION=Meet LBRY, an open, free, and community-controlled content wonderland. LOGO_TITLE=lbry.tv +SIMPLE_SITE=false # OG OG_TITLE_SUFFIX=| lbry.tv diff --git a/config.js b/config.js index 42b6992e5..1ced8d903 100644 --- a/config.js +++ b/config.js @@ -22,7 +22,7 @@ const config = { SITE_CANONICAL_URL: process.env.SITE_CANONICAL_URL, DEFAULT_LANGUAGE: process.env.DEFAULT_LANGUAGE, AUTO_FOLLOW_CHANNELS: process.env.AUTO_FOLLOW_CHANNELS, - + SIMPLE_SITE: process.env.SIMPLE_SITE === 'false', PINNED_URI_1: process.env.PINNED_URI_1, PINNED_LABEL_1: process.env.PINNED_LABEL_1, PINNED_URI_2: process.env.PINNED_URI_2, diff --git a/ui/component/comment/view.jsx b/ui/component/comment/view.jsx index c6bb67e0c..c0fdd2663 100644 --- a/ui/component/comment/view.jsx +++ b/ui/component/comment/view.jsx @@ -1,4 +1,7 @@ // @flow +import * as ICONS from 'constants/icons'; +import { FF_MAX_CHARS_IN_COMMENT } from 'constants/form-field'; +import { SIMPLE_SITE } from 'config'; import React, { useEffect, useState } from 'react'; import { isEmpty } from 'util/object'; import DateTime from 'component/dateTime'; @@ -8,12 +11,10 @@ import MarkdownPreview from 'component/common/markdown-preview'; import ChannelThumbnail from 'component/channelThumbnail'; import { Menu, MenuList, MenuButton, MenuItem } from '@reach/menu-button'; import Icon from 'component/common/icon'; -import * as ICONS from 'constants/icons'; import { FormField, Form } from 'component/common/form'; import CommentCreate from 'component/commentCreate'; import classnames from 'classnames'; import usePersistedState from 'effects/use-persisted-state'; -import { FF_MAX_CHARS_IN_COMMENT } from 'constants/form-field'; type Props = { uri: string, @@ -101,7 +102,7 @@ function Comment(props: Props) { }, [isResolvingUri, shouldFetch, author, authorUri, resolveUri, editedMessage, isEditing, setEditing]); function handleEditMessageChanged(event) { - setCommentValue(advancedEditor ? event : event.target.value); + setCommentValue(!SIMPLE_SITE && advancedEditor ? event : event.target.value); } function handleSubmit() { @@ -168,12 +169,12 @@ function Comment(props: Props) { {isEditing ? (