1
0
mirror of https://github.com/hyperspacedev/hyperspace synced 2025-01-31 09:37:05 +01:00

View thread contextually (reblog or regular)

This commit is contained in:
Marquis Kurt 2019-04-23 08:55:18 -04:00
parent d3a142ea54
commit 7492d29fc8

View File

@ -508,7 +508,7 @@ export class Post extends React.Component<any, IPostState> {
</Tooltip>
<Typography>{post.reblog? post.reblog.reblogs_count: post.reblogs_count}</Typography>
<Tooltip className={classes.desktopOnly} title="View thread">
<LinkableIconButton to={`/conversation/${post.id}`}>
<LinkableIconButton to={`/conversation/${post.reblog? post.reblog.id: post.id}`}>
<ForumIcon />
</LinkableIconButton>
</Tooltip>
@ -550,7 +550,7 @@ export class Post extends React.Component<any, IPostState> {
}
<div className={classes.mobileOnly}>
<Divider/>
<LinkableMenuItem to={`/conversation/${post.id}`}>View thread</LinkableMenuItem>
<LinkableMenuItem to={`/conversation/${post.reblog? post.reblog.id: post.id}`}>View thread</LinkableMenuItem>
<MenuItem component="a" href={this.getMastodonUrl(post)} rel="noreferrer" target="_blank">Open in Web</MenuItem>
</div>
{