mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-08 07:37:45 +00:00
Markdown spoilers and post footers on videos
This commit is contained in:
parent
ef1ad17234
commit
fac56d7f87
3 changed files with 17 additions and 5 deletions
|
@ -25,13 +25,13 @@ pub async fn profile(req: HttpRequest) -> HttpResponse {
|
|||
let username = req.match_info().get("username").unwrap_or("").to_string();
|
||||
|
||||
// Request user profile data and user posts/comments from Reddit
|
||||
let user = user(&username).await;
|
||||
let user = user(&username).await.unwrap_or_default();
|
||||
let posts = fetch_posts(&path, "Comment".to_string()).await;
|
||||
|
||||
match posts {
|
||||
Ok((posts, after)) => {
|
||||
let s = UserTemplate {
|
||||
user: user.unwrap_or_default(),
|
||||
user,
|
||||
posts,
|
||||
sort: (sort, param(&path, "t")),
|
||||
ends: (param(&path, "after"), after),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue