FIX: link to topic when clicking on up arrow

This commit is contained in:
Sam 2016-02-24 14:50:14 +11:00
parent d7ac056606
commit ee931e9f76
2 changed files with 2 additions and 1 deletions

View File

@ -85,6 +85,7 @@ export default function transformPost(currentUser, site, post, prevPost, nextPos
const postAtts = transformBasicPost(post); const postAtts = transformBasicPost(post);
postAtts.topic = topic;
postAtts.topicId = topic.id; postAtts.topicId = topic.id;
postAtts.topicOwner = details.created_by.id === post.user_id; postAtts.topicOwner = details.created_by.id === post.user_id;
postAtts.post_type = postType; postAtts.post_type = postType;

View File

@ -145,7 +145,7 @@ export default class PostCooked {
} }
_urlForPostNumber(postNumber) { _urlForPostNumber(postNumber) {
return (postNumber > 0) ? `${this.topicUrl}/${postNumber}` : this.topicUrl; return (postNumber > 0) ? `${this.attrs.topic.get('url')}/${postNumber}` : this.attrs.topic.get('url');
} }
_updateQuoteElements($aside, desc) { _updateQuoteElements($aside, desc) {