Add status reference menu

This commit is contained in:
KMY 2023-07-06 17:09:14 +09:00
parent c656f41b35
commit 44a987810b
8 changed files with 84 additions and 3 deletions
app/javascript/mastodon/actions

View file

@ -62,6 +62,7 @@ export const COMPOSE_LANGUAGE_CHANGE = 'COMPOSE_LANGUAGE_CHANGE';
export const COMPOSE_EMOJI_INSERT = 'COMPOSE_EMOJI_INSERT';
export const COMPOSE_EXPIRATION_INSERT = 'COMPOSE_EXPIRATION_INSERT';
export const COMPOSE_REFERENCE_INSERT = 'COMPOSE_REFERENCE_INSERT';
export const COMPOSE_UPLOAD_CHANGE_REQUEST = 'COMPOSE_UPLOAD_UPDATE_REQUEST';
export const COMPOSE_UPLOAD_CHANGE_SUCCESS = 'COMPOSE_UPLOAD_UPDATE_SUCCESS';
@ -770,6 +771,14 @@ export function insertExpirationCompose(position, data) {
};
}
export function insertReferenceCompose(position, url) {
return {
type: COMPOSE_REFERENCE_INSERT,
position,
url,
};
}
export function changeComposing(value) {
return {
type: COMPOSE_COMPOSING_CHANGE,