]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix incorrect use of old WebUI paths
authorClaire <claire.github-309c@sitedethib.com>
Mon, 27 Sep 2021 05:24:04 +0000 (07:24 +0200)
committerClaire <claire.github-309c@sitedethib.com>
Tue, 28 Sep 2021 11:07:27 +0000 (13:07 +0200)
Port 6b19e1e632491117bb1d3458fff31cd353b761b7 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
app/javascript/flavours/glitch/features/direct_timeline/components/conversation.js
app/javascript/flavours/glitch/features/follow_recommendations/components/account.js
app/javascript/flavours/glitch/features/follow_recommendations/index.js
app/javascript/flavours/glitch/features/ui/components/columns_area.js

index 9796ded654f57e9243ebaa15a8039dd622064ed6..202d966761817f3be2b2865ffb01e1ac91c20cab 100644 (file)
@@ -104,7 +104,7 @@ class Conversation extends ImmutablePureComponent {
       markRead();
     }
 
-    this.context.router.history.push(`/statuses/${lastStatus.get('id')}`);
+    this.context.router.history.push(`/@${lastStatus.getIn(['account', 'acct'])}/${lastStatus.get('id')}`);
   }
 
   handleMarkAsRead = () => {
index 046d03a9bcef96fe9dc37ff3cd75e073c9b14106..2c668da3e5a768dd560eae05506254f7722aefad 100644 (file)
@@ -66,7 +66,7 @@ class Account extends ImmutablePureComponent {
     return (
       <div className='account follow-recommendations-account'>
         <div className='account__wrapper'>
-          <Permalink className='account__display-name account__display-name--with-note' title={account.get('acct')} href={account.get('url')} to={`/accounts/${account.get('id')}`}>
+          <Permalink className='account__display-name account__display-name--with-note' title={account.get('acct')} href={account.get('url')} to={`/@${account.get('acct')}`}>
             <div className='account__avatar-wrapper'><Avatar account={account} size={36} /></div>
 
             <DisplayName account={account} />
index fee4d875719b1e149f7ade4a9110473df92ee5ea..d050e3cc75a288b50a7c8535c1ebfcda6970c639 100644 (file)
@@ -68,7 +68,7 @@ class FollowRecommendations extends ImmutablePureComponent {
       }
     }));
 
-    router.history.push('/timelines/home');
+    router.history.push('/home');
   }
 
   render () {
index 5ab8f249dacd9669dc25c2e5a8b2144ddaa37094..e39a31e5d7a8e88caf0cf7c0541ebe8114bce0e2 100644 (file)
@@ -47,7 +47,7 @@ const componentMap = {
   'DIRECTORY': Directory,
 };
 
-const shouldHideFAB = path => path.match(/^\/statuses\/|^\/search|^\/getting-started|^\/start/);
+const shouldHideFAB = path => path.match(/^\/statuses\/|^\/@[^/]+\/\d+|^\/publish|^\/search|^\/getting-started|^\/start/);
 
 const messages = defineMessages({
   publish: { id: 'compose_form.publish', defaultMessage: 'Toot' },