From 187e46612dc7547f4ba1f839a0e3444154c70c34 Mon Sep 17 00:00:00 2001 From: silverpill Date: Tue, 11 Oct 2022 20:02:47 +0000 Subject: [PATCH] Remove unnecessary line breaks before inline-quote block --- src/mastodon_api/statuses/views.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mastodon_api/statuses/views.rs b/src/mastodon_api/statuses/views.rs index e6c8faf..6fca209 100644 --- a/src/mastodon_api/statuses/views.rs +++ b/src/mastodon_api/statuses/views.rs @@ -113,10 +113,12 @@ async fn create_status( }; // Append inline quote and add author to mentions post_data.content += &format!( - r#"

RE: {0}

"#, + r#"

RE: {0}

"#, 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] }, _ => return Err(ValidationError("too many links").into()),