mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 23:48:34 +08:00
FIX: link to topic when clicking on up arrow
This commit is contained in:
parent
d7ac056606
commit
ee931e9f76
|
@ -85,6 +85,7 @@ export default function transformPost(currentUser, site, post, prevPost, nextPos
|
|||
|
||||
const postAtts = transformBasicPost(post);
|
||||
|
||||
postAtts.topic = topic;
|
||||
postAtts.topicId = topic.id;
|
||||
postAtts.topicOwner = details.created_by.id === post.user_id;
|
||||
postAtts.post_type = postType;
|
||||
|
|
|
@ -145,7 +145,7 @@ export default class PostCooked {
|
|||
}
|
||||
|
||||
_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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user