Don't auto-mention author of a linked post

This commit is contained in:
silverpill 2022-12-18 17:39:00 +00:00
parent 9872e40399
commit 0465aaf0c7

View file

@ -134,9 +134,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);
};
post_data.links.push(post.id); post_data.links.push(post.id);
linked.push(post); linked.push(post);
}; };