fix quote cant jump post
This commit is contained in:
parent
4c2f549331
commit
7183eeb36b
@ -270,16 +270,16 @@ class Status extends ImmutablePureComponent {
|
||||
};
|
||||
|
||||
handleQuoteClick = () => {
|
||||
if (!this.context.router) {
|
||||
if (!this.props) {
|
||||
return;
|
||||
}
|
||||
|
||||
const { status } = this.props;
|
||||
this.context.router.history.push(`/statuses/${status.getIn(['reblog', 'quote', 'id'], status.getIn(['quote', 'id']))}`);
|
||||
this.props.history.push(`/statuses/${status.getIn(['reblog', 'quote', 'id'], status.getIn(['quote', 'id']))}`);
|
||||
}
|
||||
|
||||
handleQuoteUserClick = () =>{
|
||||
if (!this.context.router) {
|
||||
if (!this.props) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -708,7 +708,7 @@ class Status extends ImmutablePureComponent {
|
||||
|
||||
{media(status)}
|
||||
|
||||
{quote(status, this.props.muted, quoteMuted, this.handleQuoteClick, this.handleExpandedQuoteToggle, identity, media, this.context.router, contextType)}
|
||||
{quote(status, this.props.muted, quoteMuted, this.handleQuoteClick, this.handleExpandedQuoteToggle, identity, media, this.props, contextType)}
|
||||
|
||||
{expanded && hashtagBar}
|
||||
|
||||
|
@ -82,16 +82,16 @@ class DetailedStatus extends ImmutablePureComponent {
|
||||
}
|
||||
|
||||
handleQuoteClick = () => {
|
||||
if (!this.context.router) {
|
||||
if (!this.props) {
|
||||
return;
|
||||
}
|
||||
|
||||
const { status } = this.props;
|
||||
this.context.router.history.push(`/statuses/${status.getIn(['quote', 'id'])}`);
|
||||
this.props.history.push(`/statuses/${status.getIn(['quote', 'id'])}`);
|
||||
}
|
||||
|
||||
handleQuoteUserClick = () =>{
|
||||
if (!this.context.router) {
|
||||
if (!this.props) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -347,7 +347,7 @@ class DetailedStatus extends ImmutablePureComponent {
|
||||
|
||||
{media(status, false)}
|
||||
|
||||
{quote(status, false, quoteMuted, this.handleQuoteClick, this.handleExpandedQuoteToggle, identity, media, this.context.router)}
|
||||
{quote(status, false, quoteMuted, this.handleQuoteClick, this.handleExpandedQuoteToggle, identity, media, this.props)}
|
||||
|
||||
{expanded && hashtagBar}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user