Remove unnecessary line breaks before inline-quote block

This commit is contained in:
silverpill 2022-10-11 20:02:47 +00:00
parent 47149e5379
commit 187e46612d

View file

@ -113,10 +113,12 @@ async fn create_status(
}; };
// Append inline quote and add author to mentions // Append inline quote and add author to mentions
post_data.content += &format!( post_data.content += &format!(
r#"<br><br><p class="inline-quote">RE: <a href="{0}">{0}</a></p>"#, r#"<p class="inline-quote">RE: <a href="{0}">{0}</a></p>"#,
linked.get_object_id(&instance.url()), linked.get_object_id(&instance.url()),
); );
post_data.mentions.push(linked.author.id); if linked.author.id != current_user.id {
post_data.mentions.push(linked.author.id);
};
vec![linked] vec![linked]
}, },
_ => return Err(ValidationError("too many links").into()), _ => return Err(ValidationError("too many links").into()),