RemoteTimeline: click favicon to visit remote timeline
This commit is contained in:
parent
a4bb347151
commit
f587369af0
2 changed files with 8 additions and 4 deletions
|
@ -17,7 +17,7 @@ import { HotKeys } from 'react-hotkeys';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
import PollContainer from 'soapbox/containers/poll_container';
|
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 { getDomain } from 'soapbox/utils/accounts';
|
||||||
import HoverRefWrapper from 'soapbox/components/hover_ref_wrapper';
|
import HoverRefWrapper from 'soapbox/components/hover_ref_wrapper';
|
||||||
|
|
||||||
|
@ -459,7 +459,9 @@ class Status extends ImmutablePureComponent {
|
||||||
|
|
||||||
{favicon &&
|
{favicon &&
|
||||||
<div className='status__favicon'>
|
<div className='status__favicon'>
|
||||||
<img src={favicon} alt='' title={domain} />
|
<Link to={`/timeline/${domain}`}>
|
||||||
|
<img src={favicon} alt='' title={domain} />
|
||||||
|
</Link>
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
<div className='status__profile'>
|
<div className='status__profile'>
|
||||||
|
|
|
@ -5,7 +5,7 @@ import Avatar from '../../../components/avatar';
|
||||||
import DisplayName from '../../../components/display_name';
|
import DisplayName from '../../../components/display_name';
|
||||||
import StatusContent from '../../../components/status_content';
|
import StatusContent from '../../../components/status_content';
|
||||||
import MediaGallery from '../../../components/media_gallery';
|
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 { FormattedDate } from 'react-intl';
|
||||||
import Card from './card';
|
import Card from './card';
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component';
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
|
@ -197,7 +197,9 @@ export default class DetailedStatus extends ImmutablePureComponent {
|
||||||
<div>
|
<div>
|
||||||
{favicon &&
|
{favicon &&
|
||||||
<div className='status__favicon'>
|
<div className='status__favicon'>
|
||||||
<img src={favicon} alt='' title={domain} />
|
<Link to={`/timeline/${domain}`}>
|
||||||
|
<img src={favicon} alt='' title={domain} />
|
||||||
|
</Link>
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
{statusTypeIcon}<a className='detailed-status__datetime' href={status.get('url')} target='_blank' rel='noopener'>
|
{statusTypeIcon}<a className='detailed-status__datetime' href={status.get('url')} target='_blank' rel='noopener'>
|
||||||
|
|
Loading…
Reference in a new issue