mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-08 07:37:45 +00:00
Added Percent Encoding Support
This commit is contained in:
parent
8f157c0b40
commit
9a6430656d
11 changed files with 63 additions and 16570 deletions
|
@ -1,7 +1,7 @@
|
|||
// CRATES
|
||||
use actix_web::{get, web, HttpResponse, Result, http::StatusCode};
|
||||
use crate::utils::{fetch_posts, nested_val, request, ErrorTemplate, Params, Post, User};
|
||||
use actix_web::{get, http::StatusCode, web, HttpResponse, Result};
|
||||
use askama::Template;
|
||||
use crate::utils::{nested_val, request, fetch_posts, ErrorTemplate, Params, Post, User};
|
||||
|
||||
// STRUCTS
|
||||
#[derive(Template)]
|
||||
|
@ -71,4 +71,4 @@ async fn user(name: &String) -> Result<User, &'static str> {
|
|||
banner: nested_val(&res, "subreddit", "banner_img").await,
|
||||
description: nested_val(&res, "subreddit", "public_description").await,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue