mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 03:43:42 +01:00
add an eye when submitting a toot with do_not_federate enabled
This commit is contained in:
parent
556cede00f
commit
49e82c1e0f
1 changed files with 4 additions and 1 deletions
|
@ -74,11 +74,14 @@ export function mentionCompose(account, router) {
|
|||
|
||||
export function submitCompose() {
|
||||
return function (dispatch, getState) {
|
||||
const status = emojione.shortnameToUnicode(getState().getIn(['compose', 'text'], ''));
|
||||
let status = emojione.shortnameToUnicode(getState().getIn(['compose', 'text'], ''));
|
||||
if (!status || !status.length) {
|
||||
return;
|
||||
}
|
||||
dispatch(submitComposeRequest());
|
||||
if (getState().getIn(['compose', 'advanced_options', 'do_not_federate'])) {
|
||||
status = status + ' 👁️';
|
||||
}
|
||||
api(getState).post('/api/v1/statuses', {
|
||||
status,
|
||||
in_reply_to_id: getState().getIn(['compose', 'in_reply_to'], null),
|
||||
|
|
Loading…
Reference in a new issue