Fix empty pasta content showing code field

content has to be "No Text Content" to hide the code field on the pasta view
This commit is contained in:
Daniel Szabo 2022-11-07 00:27:25 +02:00
parent 7522d41919
commit 5e2513eb1f

View file

@ -127,7 +127,9 @@ pub async fn create(
String::from("text")
};
}
new_pasta.content = content;
if content.len() > 0 {
new_pasta.content = content;
}
continue;
}
"syntax-highlight" => {