diff --git a/src/frontend/pages/article/edit.rs b/src/frontend/pages/article/edit.rs
index 38687b4..4d82d75 100644
--- a/src/frontend/pages/article/edit.rs
+++ b/src/frontend/pages/article/edit.rs
@@ -136,6 +136,9 @@ pub fn EditArticle() -> impl IntoView {
}
set_content.set(article.article.text.clone());
let article_ = article.clone();
+ let show_federation_warning = !article.instance.local
+ && article.instance.last_refreshed_at + Days::new(3)
+ < Utc::now();
view! {
// set initial text, otherwise submit with no changes results in empty text
@@ -145,17 +148,14 @@ pub fn EditArticle() -> impl IntoView {
.map(|err| {
view! {
{err}
}
})
- }}
-
+ }}
- This article is hosted on {article.instance.domain.clone()}
- which hasnt been federated in
+ "This article is hosted on "
+ {article.instance.domain.clone()}
+ " which hasnt been federated in "
{(Utc::now() - article.instance.last_refreshed_at)
.num_days()}
- days. Edits will most likely fail. Instead consider forking the article to your local instance (under Actions), or edit a different article.
+ " days. Edits will most likely fail. Instead consider forking the article to your local instance (under Actions), or edit a different article."