Encode crosspost url. Fixes #1083

This commit is contained in:
Dessalines 2020-08-15 18:47:24 -04:00
parent dd0418af18
commit ffaafb1db5

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}`;