Encode crosspost url. Fixes #1083 (#1088)

This commit is contained in:
Dessalines 2020-08-16 11:05:45 -04:00 committed by GitHub
parent adeba99d38
commit 0a27432b65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1223,7 +1223,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
let post = this.props.post;
if (post.url) {
params += `&url=${post.url}`;
params += `&url=${encodeURIComponent(post.url)}`;
}
if (this.props.post.body) {
params += `&body=${this.props.post.body}`;