mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Build quote share URL using post number, not post ID (#13622)
This commit is contained in:
parent
7e6a317597
commit
ddaf2f55fd
@ -250,7 +250,9 @@ export default Component.extend({
|
|||||||
|
|
||||||
@discourseComputed("topic.{id,slug}", "quoteState")
|
@discourseComputed("topic.{id,slug}", "quoteState")
|
||||||
shareUrl(topic, quoteState) {
|
shareUrl(topic, quoteState) {
|
||||||
return getAbsoluteURL(postUrl(topic.slug, topic.id, quoteState.postId));
|
const postId = quoteState.postId;
|
||||||
|
const postNumber = topic.postStream.findLoadedPost(postId).post_number;
|
||||||
|
return getAbsoluteURL(postUrl(topic.slug, topic.id, postNumber));
|
||||||
},
|
},
|
||||||
|
|
||||||
@discourseComputed("topic.details.can_create_post", "composerVisible")
|
@discourseComputed("topic.details.can_create_post", "composerVisible")
|
||||||
|
Loading…
Reference in New Issue
Block a user