Browse Source

Fix incorrect use of old WebUI paths (#16773)

* Fix incorrect use of old WebUI paths

PR #16171 renamed some routes but missed some occurrences.
Without #16772, this leads to unreachable routes in those cases.

* Fix floating action button being displayed on statuses and compose screen
closed-social-glitch-2
Claire 3 years ago
committed by GitHub
parent
commit
6b19e1e632
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      app/javascript/mastodon/features/direct_timeline/components/conversation.js
  2. +1
    -1
      app/javascript/mastodon/features/follow_recommendations/components/account.js
  3. +1
    -1
      app/javascript/mastodon/features/follow_recommendations/index.js
  4. +1
    -1
      app/javascript/mastodon/features/ui/components/columns_area.js

+ 1
- 1
app/javascript/mastodon/features/direct_timeline/components/conversation.js View File

@ -81,7 +81,7 @@ class Conversation extends ImmutablePureComponent {
markRead();
}
this.context.router.history.push(`/statuses/${lastStatus.get('id')}`);
this.context.router.history.push(`/@span>${lastStatus.getInspan>(['account', 'acct'])}/${lastStatus.get('id')}`);
}
handleMarkAsRead = () => {

+ 1
- 1
app/javascript/mastodon/features/follow_recommendations/components/account.js View 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} />

+ 1
- 1
app/javascript/mastodon/features/follow_recommendations/index.js View File

@ -68,7 +68,7 @@ class FollowRecommendations extends ImmutablePureComponent {
}
}));
router.history.push('/timelines/home');
router.history.push('/home');
}
render () {

+ 1
- 1
app/javascript/mastodon/features/ui/components/columns_area.js View File

@ -53,7 +53,7 @@ const messages = defineMessages({
publish: { id: 'compose_form.publish', defaultMessage: 'Toot' },
});
const shouldHideFAB = path => path.match(/^\/statuses\/|^\/search|^\/getting-started|^\/start/);
const shouldHideFAB = path => path.match(/^\/statuses\/|^\/@[^/]+\/\d+|^\/publish|^\/search|^\/getting-started|^\/start/);
export default @(component => injectIntl(component, { withRef: true }))
class ColumnsArea extends ImmutablePureComponent {

Loading…
Cancel
Save