Don't auto-mention author of a linked post

This commit is contained in:
silverpill 2022-12-10 18:29:40 +00:00
parent 64dbd8ff26
commit 2714378f22

View file

@ -106,9 +106,6 @@ async fn create_status(
if post.visibility != Visibility::Public { if post.visibility != Visibility::Public {
return Err(ValidationError("can't reference non-public post").into()); return Err(ValidationError("can't reference non-public post").into());
}; };
if post.author.id != current_user.id {
post_data.mentions.push(post.author.id);
};
// Append inline quote // Append inline quote
post_data.content += &format!( post_data.content += &format!(
r#"<p class="inline-quote">RE: <a href="{0}">{0}</a></p>"#, r#"<p class="inline-quote">RE: <a href="{0}">{0}</a></p>"#,