1
0
mirror of https://github.com/hyperspacedev/hyperspace synced 2025-02-07 15:28:40 +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> </Tooltip>
<Typography>{post.reblog? post.reblog.reblogs_count: post.reblogs_count}</Typography> <Typography>{post.reblog? post.reblog.reblogs_count: post.reblogs_count}</Typography>
<Tooltip className={classes.desktopOnly} title="View thread"> <Tooltip className={classes.desktopOnly} title="View thread">
<LinkableIconButton to={`/conversation/${post.id}`}> <LinkableIconButton to={`/conversation/${post.reblog? post.reblog.id: post.id}`}>
<ForumIcon /> <ForumIcon />
</LinkableIconButton> </LinkableIconButton>
</Tooltip> </Tooltip>
@ -550,7 +550,7 @@ export class Post extends React.Component<any, IPostState> {
} }
<div className={classes.mobileOnly}> <div className={classes.mobileOnly}>
<Divider/> <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> <MenuItem component="a" href={this.getMastodonUrl(post)} rel="noreferrer" target="_blank">Open in Web</MenuItem>
</div> </div>
{ {