RemoteTimeline: click favicon to visit remote timeline

This commit is contained in:
Alex Gleason 2020-12-24 16:57:53 -06:00
parent a4bb347151
commit f587369af0
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 8 additions and 4 deletions

View file

@ -17,7 +17,7 @@ import { HotKeys } from 'react-hotkeys';
import classNames from 'classnames';
import Icon from 'soapbox/components/icon';
import PollContainer from 'soapbox/containers/poll_container';
import { NavLink } from 'react-router-dom';
import { Link, NavLink } from 'react-router-dom';
import { getDomain } from 'soapbox/utils/accounts';
import HoverRefWrapper from 'soapbox/components/hover_ref_wrapper';
@ -459,7 +459,9 @@ class Status extends ImmutablePureComponent {
{favicon &&
<div className='status__favicon'>
<img src={favicon} alt='' title={domain} />
<Link to={`/timeline/${domain}`}>
<img src={favicon} alt='' title={domain} />
</Link>
</div>}
<div className='status__profile'>

View file

@ -5,7 +5,7 @@ import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import StatusContent from '../../../components/status_content';
import MediaGallery from '../../../components/media_gallery';
import { NavLink } from 'react-router-dom';
import { Link, NavLink } from 'react-router-dom';
import { FormattedDate } from 'react-intl';
import Card from './card';
import ImmutablePureComponent from 'react-immutable-pure-component';
@ -197,7 +197,9 @@ export default class DetailedStatus extends ImmutablePureComponent {
<div>
{favicon &&
<div className='status__favicon'>
<img src={favicon} alt='' title={domain} />
<Link to={`/timeline/${domain}`}>
<img src={favicon} alt='' title={domain} />
</Link>
</div>}
{statusTypeIcon}<a className='detailed-status__datetime' href={status.get('url')} target='_blank' rel='noopener'>