diff --git a/src/pages/common/Post.js b/src/pages/common/Post.js index 6c547cb..3093f27 100644 --- a/src/pages/common/Post.js +++ b/src/pages/common/Post.js @@ -5,7 +5,7 @@ import { prettyScore, prettyDate, prettyTimeDiff, exactDateTime, parse, redditTh export default (props) => { if (!props.title) { if (props.removed) { - const permalink = `/r/${props.subreddit}/comments/${props.id}` + const permalink = `/r/${props.subreddit}/comments/${props.id}/` return (
@@ -13,9 +13,9 @@ export default (props) => {
?
- +
- [removed too quickly to be archived] + [removed too quickly to be archived]
reddit  reveddit @@ -47,12 +47,14 @@ export default (props) => { if (redditThumbnails.includes(props.thumbnail)) { thumbnail = React.createElement(isSameUrl ? Link : 'a', { [isSameUrl ? 'to' : 'href']: url, + replace: isSameUrl ? true : undefined, className: `thumbnail thumbnail-${props.thumbnail}` }) } else if (props.thumbnail !== '') { - thumbnail = React.createElement(isSameUrl ? Link : 'a', { [isSameUrl ? 'to' : 'href']: url }, - Thumbnail - ) + thumbnail = React.createElement(isSameUrl ? Link : 'a', { + [isSameUrl ? 'to' : 'href']: url, + replace: isSameUrl ? true : undefined + }, Thumbnail) } let innerHTML, editedInnerHTML; @@ -74,7 +76,7 @@ export default (props) => { const totalComments =
{props.reloadingComments ? {props.num_comments} comments : - {props.num_comments} comments}  + {props.num_comments} comments}  reddit  reveddit {props.hasOwnProperty('edited_selftext') && @@ -96,7 +98,11 @@ export default (props) => {
{thumbnail}
- { React.createElement(isSameUrl ? Link : 'a', { [isSameUrl ? 'to' : 'href']: url, className:'thread-title' }, props.title) } + { React.createElement(isSameUrl ? Link : 'a', { + [isSameUrl ? 'to' : 'href']: url, + replace: isSameUrl ? true : undefined, + className:'thread-title' + }, props.title) } {props.link_flair_text && {props.link_flair_text} }