]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Add exact attribute to WrappedRoute for community timeline
authorThibaut Girka <thib@sitedethib.com>
Sun, 27 May 2018 19:22:17 +0000 (21:22 +0200)
committerThibG <thib@sitedethib.com>
Tue, 18 Dec 2018 20:39:35 +0000 (21:39 +0100)
Port 46061dc041b0a2a4a3907976cc3432abdb1d67ec to glitch-soc

app/javascript/flavours/glitch/features/ui/index.js

index 79b4ce24cf9350af2a2f9ac65cae6e1696d558d4..9892f3254bc68afce957296b588610a154953652 100644 (file)
@@ -467,8 +467,8 @@ export default class UI extends React.Component {
               <WrappedRoute path='/keyboard-shortcuts' component={KeyboardShortcuts} content={children} />
               <WrappedRoute path='/timelines/home' component={HomeTimeline} content={children} />
               <WrappedRoute path='/timelines/public' exact component={PublicTimeline} content={children} />
-              <WrappedRoute path='/timelines/public/media' extract component={PublicTimeline} content={children} componentParams={{ onlyMedia: true }} />
-              <WrappedRoute path='/timelines/public/local' component={CommunityTimeline} content={children} />
+              <WrappedRoute path='/timelines/public/media' component={PublicTimeline} content={children} componentParams={{ onlyMedia: true }} />
+              <WrappedRoute path='/timelines/public/local' exact component={CommunityTimeline} content={children} />
               <WrappedRoute path='/timelines/public/local/media' component={CommunityTimeline} content={children} componentParams={{ onlyMedia: true }} />
               <WrappedRoute path='/timelines/direct' component={DirectTimeline} content={children} />
               <WrappedRoute path='/timelines/tag/:id' component={HashtagTimeline} content={children} />