|
@@ -90,9 +90,9 @@ pub async fn index(state: Data<&AppState>) -> Result<impl IntoResponse> {
|
|
|
pub async fn shitpost_view(state: Data<&AppState>) -> Result<impl IntoResponse> {
|
|
|
let mut ctx = tera::Context::new();
|
|
|
|
|
|
-
|
|
|
|
|
|
- ctx.insert("table_head", vec!["id", "title", ""]);
|
|
|
+
|
|
|
+ ctx.insert("table_head", &vec!["id", "title", ""]);
|
|
|
let body = state
|
|
|
.templates
|
|
|
.render("add_shitpost.html.tera", &ctx)
|