Don't auto-mention author of a linked post
This commit is contained in:
parent
64dbd8ff26
commit
2714378f22
1 changed files with 0 additions and 3 deletions
|
@ -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>"#,
|
||||||
|
|
Loading…
Reference in a new issue