]> cat aescling's git repositories - mastodon.git/commitdiff
Fix public timelines not instantly updating on compose (#9050)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 22 Oct 2018 22:43:18 +0000 (00:43 +0200)
committerGitHub <noreply@github.com>
Mon, 22 Oct 2018 22:43:18 +0000 (00:43 +0200)
Fix #9034

app/javascript/mastodon/actions/compose.js

index f72671228362e7a9398d294109628ffc8ee2ca0b..fac8d32a12566988518abeffab6e99da3b8858ce 100644 (file)
@@ -146,7 +146,9 @@ export function submitCompose(routerHistory) {
         routerHistory.push('/timelines/direct');
       } else if (response.data.visibility !== 'direct') {
         insertIfOnline('home');
-      } else if (response.data.in_reply_to_id === null && response.data.visibility === 'public') {
+      }
+
+      if (response.data.in_reply_to_id === null && response.data.visibility === 'public') {
         insertIfOnline('community');
         insertIfOnline('public');
       }