mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-21 22:27:11 +00:00
Fixing uri protected params getting clipped from cross posts. Fixes #141
This commit is contained in:
parent
6a75db6887
commit
f9eeabb2f9
|
@ -1260,13 +1260,13 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
|
||||
get crossPostParams(): string {
|
||||
let post = this.props.post_view.post;
|
||||
let params = `?title=${post.name}`;
|
||||
let params = `?title=${encodeURIComponent(post.name)}`;
|
||||
|
||||
if (post.url) {
|
||||
params += `&url=${encodeURIComponent(post.url)}`;
|
||||
}
|
||||
if (post.body) {
|
||||
params += `&body=${post.body}`;
|
||||
params += `&body=${encodeURIComponent(post.body)}`;
|
||||
}
|
||||
return params;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue