about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-01-08 19:05:33 +0100
committerThibaut Girka <thib@sitedethib.com>2020-07-06 21:13:04 +0200
commit13db302f6eca9e3a40eb92fe9dc358e4a5dda432 (patch)
tree66818a83098b00ae4dbe852edb2356839521715d /app/javascript
parentd973e110616c132f1d8df676e7039a57b9134537 (diff)
Fix vanilla flavour too
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/actions/compose.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/javascript/mastodon/actions/compose.js b/app/javascript/mastodon/actions/compose.js
index 6b73fc90e..1b5b791c1 100644
--- a/app/javascript/mastodon/actions/compose.js
+++ b/app/javascript/mastodon/actions/compose.js
@@ -173,7 +173,9 @@ export function submitCompose(routerHistory) {
 
       if (response.data.in_reply_to_id === null && response.data.visibility === 'public') {
         insertIfOnline('community');
-        insertIfOnline('public');
+        if (!response.data.local_only) {
+          insertIfOnline('public');
+        }
       }
     }).catch(function (error) {
       dispatch(submitComposeFail(error));