about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorSurinna Curtis <ekiru.0@gmail.com>2017-07-06 22:30:21 -0500
committerSurinna Curtis <ekiru.0@gmail.com>2017-07-06 22:30:51 -0500
commit3464bb30f83dcfc8e8096d191fd110d84b9ad42f (patch)
tree48fadafeaa7ea5b548a05dbad7f3c1377af6a184 /app/javascript
parentd87d70e89a01953ec10fff3e518adc4ab5fd52d2 (diff)
replies to local-only toots default to local-only, and fix some regex bugs
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/reducers/compose.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/javascript/mastodon/reducers/compose.js b/app/javascript/mastodon/reducers/compose.js
index a83df62dc..21d801f2a 100644
--- a/app/javascript/mastodon/reducers/compose.js
+++ b/app/javascript/mastodon/reducers/compose.js
@@ -180,7 +180,9 @@ export default function compose(state = initialState, action) {
       map.set('in_reply_to', action.status.get('id'));
       map.set('text', statusToTextMentions(state, action.status));
       map.set('privacy', privacyPreference(action.status.get('visibility'), state.get('default_privacy')));
-      map.set('advanced_options', state.get('default_advanced_options'));
+      map.set('advanced_options', new Immutable.Map({
+        do_not_federate: /👁\ufe0f?<\/p>$/.test(action.status.get('content')),
+      }));
       map.set('focusDate', new Date());
       map.set('preselectDate', new Date());
       map.set('idempotencyKey', uuid());