Browse Source

patch out HTML post mode

main
Lerk 1 month ago
parent
commit
848da7ecf6
  1. 1
      README.md
  2. 16
      app/javascript/mastodon/features/compose/components/content_type_dropdown.js

1
README.md

@ -26,3 +26,4 @@ Here's a list of nice stuff in this version:
- Change notification sound
- About page patched out
- /about/more is still accessible
- Support for Markdown posts

16
app/javascript/mastodon/features/compose/components/content_type_dropdown.js

@ -8,7 +8,7 @@ import spring from 'react-motion/lib/spring';
import { supportsPassiveEvents } from 'detect-passive-events';
import classNames from 'classnames';
import Icon from '../../../components/icon';
import Octicon, { getIconByName, Markdown } from '@primer/octicons-react';
import Octicon, { Markdown } from '@primer/octicons-react';
const messages = defineMessages({
content_type: {
@ -23,10 +23,6 @@ const messages = defineMessages({
defaultMessage: 'Plain text',
id: 'compose.content-type.plain',
},
html: {
defaultMessage: 'HTML',
id: 'compose.content-type.html',
},
});
const listenerOptions = supportsPassiveEvents.hasSupport ? { passive: true } : false;
@ -265,12 +261,10 @@ class ContentTypeDropdown extends React.PureComponent {
};
componentWillMount() {
const { intl: { formatMessage } } = this.props;
this.options = [
{ icon: 'text', value: 'text/plain', text: 'Plain Text', meta: '' },
{ icon: 'code', value: 'text/markdown', text: 'Markdown', meta: '' },
{ icon: 'markdown', value: 'text/html', text: 'HTML', meta: '' },
{ icon: 'markdown', value: 'text/markdown', text: 'Markdown', meta: '' },
];
}
@ -285,12 +279,6 @@ class ContentTypeDropdown extends React.PureComponent {
octicon: undefined,
name: 'text',
text: <FormattedMessage {...messages.plain} />,
}, {
icon: 'code',
value: 'text/html',
octicon: undefined,
name: 'html',
text: <FormattedMessage {...messages.html} />,
}, {
icon: '',
name: 'markdown',

Loading…
Cancel
Save