diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-03-07 22:17:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-07 22:17:52 +0100 |
commit | be1c634b2b4372a525d304d2ff830392f04c5cc5 (patch) | |
tree | 2070c1a3562652fe0c3e630a97dd77fbb3708ca5 /app/javascript/mastodon/actions/timelines.js | |
parent | 09c042aa10f2be4824fcb8e96c8a8ae6d324d12f (diff) |
Fix public timelines being broken by new toots when they are not mounted (#10131)
Diffstat (limited to 'app/javascript/mastodon/actions/timelines.js')
-rw-r--r-- | app/javascript/mastodon/actions/timelines.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/javascript/mastodon/actions/timelines.js b/app/javascript/mastodon/actions/timelines.js index 6e7bd027c..d92385e95 100644 --- a/app/javascript/mastodon/actions/timelines.js +++ b/app/javascript/mastodon/actions/timelines.js @@ -12,6 +12,7 @@ export const TIMELINE_EXPAND_FAIL = 'TIMELINE_EXPAND_FAIL'; export const TIMELINE_SCROLL_TOP = 'TIMELINE_SCROLL_TOP'; +export const TIMELINE_CONNECT = 'TIMELINE_CONNECT'; export const TIMELINE_DISCONNECT = 'TIMELINE_DISCONNECT'; export function updateTimeline(timeline, status, accept) { @@ -143,6 +144,13 @@ export function scrollTopTimeline(timeline, top) { }; }; +export function connectTimeline(timeline) { + return { + type: TIMELINE_CONNECT, + timeline, + }; +}; + export function disconnectTimeline(timeline) { return { type: TIMELINE_DISCONNECT, |