]> cat aescling's git repositories - mastodon.git/commitdiff
Fix vanilla flavour too
authorThibaut Girka <thib@sitedethib.com>
Tue, 8 Jan 2019 18:05:33 +0000 (19:05 +0100)
committerThibaut Girka <thib@sitedethib.com>
Mon, 6 Jul 2020 19:13:04 +0000 (21:13 +0200)
app/javascript/mastodon/actions/compose.js

index 6b73fc90e09a18354e015aabdff9de00756f4bae..1b5b791c175affa2b1d1ba14b6675fc90f727bca 100644 (file)
@@ -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));