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:
parent
7522d41919
commit
5e2513eb1f
1 changed files with 3 additions and 1 deletions
|
@ -127,7 +127,9 @@ pub async fn create(
|
||||||
String::from("text")
|
String::from("text")
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
new_pasta.content = content;
|
if content.len() > 0 {
|
||||||
|
new_pasta.content = content;
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
"syntax-highlight" => {
|
"syntax-highlight" => {
|
||||||
|
|
Loading…
Reference in a new issue