diff --git a/app/javascript/mastodon/actions/compose.js b/app/javascript/mastodon/actions/compose.js
index 26e7bfab2..891403969 100644
--- a/app/javascript/mastodon/actions/compose.js
+++ b/app/javascript/mastodon/actions/compose.js
@@ -20,8 +20,6 @@ export const COMPOSE_SUBMIT_FAIL = 'COMPOSE_SUBMIT_FAIL';
export const COMPOSE_REPLY = 'COMPOSE_REPLY';
export const COMPOSE_REPLY_CANCEL = 'COMPOSE_REPLY_CANCEL';
export const COMPOSE_DIRECT = 'COMPOSE_DIRECT';
-export const COMPOSE_QUOTE = 'COMPOSE_QUOTE';
-export const COMPOSE_QUOTE_CANCEL = 'COMPOSE_QUOTE_CANCEL';
export const COMPOSE_MENTION = 'COMPOSE_MENTION';
export const COMPOSE_RESET = 'COMPOSE_RESET';
export const COMPOSE_UPLOAD_REQUEST = 'COMPOSE_UPLOAD_REQUEST';
@@ -102,25 +100,6 @@ export function cancelReplyCompose() {
};
};
-export function quoteCompose(status, router) {
- return (dispatch, getState) => {
- dispatch({
- type: COMPOSE_QUOTE,
- status: status,
- });
-
- if (!getState().getIn(['compose', 'mounted'])) {
- router.push('/statuses/new');
- }
- };
-};
-
-export function cancelQuoteCompose() {
- return {
- type: COMPOSE_QUOTE_CANCEL,
- };
-};
-
export function resetCompose() {
return {
type: COMPOSE_RESET,
@@ -151,22 +130,13 @@ export function directCompose(account, routerHistory) {
export function submitCompose(routerHistory) {
return function (dispatch, getState) {
- let status = getState().getIn(['compose', 'text'], '');
+ const status = getState().getIn(['compose', 'text'], '');
const media = getState().getIn(['compose', 'media_attachments']);
- const quoteId = getState().getIn(['compose', 'quote_from'], null);
if ((!status || !status.length) && media.size === 0) {
return;
}
- if (quoteId) {
- status = [
- status,
- "~~~~~~~~~~",
- `[${quoteId}][${getState().getIn(['compose', 'quote_from_uri'], null)}]`
- ].join("\n");
- }
-
dispatch(submitComposeRequest());
api(getState).post('/api/v1/statuses', {
diff --git a/app/javascript/mastodon/components/status_action_bar.js b/app/javascript/mastodon/components/status_action_bar.js
index ba860304c..7dbbb99cc 100644
--- a/app/javascript/mastodon/components/status_action_bar.js
+++ b/app/javascript/mastodon/components/status_action_bar.js
@@ -24,7 +24,6 @@ const messages = defineMessages({
reblog_private: { id: 'status.reblog_private', defaultMessage: 'Boost with original visibility' },
cancel_reblog_private: { id: 'status.cancel_reblog_private', defaultMessage: 'Unboost' },
cannot_reblog: { id: 'status.cannot_reblog', defaultMessage: 'This post cannot be boosted' },
- quote: { id: 'status.quote', defaultMessage: 'Quote' },
favourite: { id: 'status.favourite', defaultMessage: 'Favourite' },
bookmark: { id: 'status.bookmark', defaultMessage: 'Bookmark' },
removeBookmark: { id: 'status.remove_bookmark', defaultMessage: 'Remove bookmark' },
@@ -62,7 +61,6 @@ class StatusActionBar extends ImmutablePureComponent {
onReply: PropTypes.func,
onFavourite: PropTypes.func,
onReblog: PropTypes.func,
- onQuote: PropTypes.func,
onDelete: PropTypes.func,
onDirect: PropTypes.func,
onMention: PropTypes.func,
@@ -139,10 +137,6 @@ class StatusActionBar extends ImmutablePureComponent {
this.props.onBookmark(this.props.status);
}
- handleQuoteClick = () => {
- this.props.onQuote(this.props.status, this.context.router.history);
- }
-
handleDeleteClick = () => {
this.props.onDelete(this.props.status, this.context.router.history);
}
@@ -340,7 +334,6 @@ class StatusActionBar extends ImmutablePureComponent {