Don't auto-mention author of a linked post
This commit is contained in:
parent
9872e40399
commit
0465aaf0c7
1 changed files with 0 additions and 3 deletions
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue