Allow object links in replies

This commit is contained in:
silverpill 2022-10-20 17:52:16 +00:00
parent 81f8c0e60b
commit 01305475c3
No known key found for this signature in database
GPG key ID: 955F5A6E212325F0

View file

@ -148,9 +148,6 @@ async fn create_status(
};
};
if post_data.links.len() > 0 {
if post_data.in_reply_to_id.is_some() {
return Err(ValidationError("can't add links to reply").into());
};
if post_data.visibility != Visibility::Public {
return Err(ValidationError("can't add links to non-public posts").into());
};