Running cargo fmt.
This commit is contained in:
parent
3e16882f8c
commit
3fdb1c5bf3
2 changed files with 50 additions and 26 deletions
|
@ -602,7 +602,17 @@ impl Perform<LoginResponse> for Oper<DeleteAccount> {
|
||||||
let user_id = claims.id;
|
let user_id = claims.id;
|
||||||
|
|
||||||
// Comments
|
// Comments
|
||||||
let comments = CommentView::list(&conn, &SortType::New, None, Some(user_id), None, None, false, None, Some(std::i64::MAX))?;
|
let comments = CommentView::list(
|
||||||
|
&conn,
|
||||||
|
&SortType::New,
|
||||||
|
None,
|
||||||
|
Some(user_id),
|
||||||
|
None,
|
||||||
|
None,
|
||||||
|
false,
|
||||||
|
None,
|
||||||
|
Some(std::i64::MAX),
|
||||||
|
)?;
|
||||||
|
|
||||||
for comment in &comments {
|
for comment in &comments {
|
||||||
let comment_form = CommentForm {
|
let comment_form = CommentForm {
|
||||||
|
@ -623,7 +633,21 @@ impl Perform<LoginResponse> for Oper<DeleteAccount> {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Posts
|
// Posts
|
||||||
let posts = PostView::list(&conn, PostListingType::All, &SortType::New,None, Some(user_id), None, None, None, true, false, false, None, Some(std::i64::MAX))?;
|
let posts = PostView::list(
|
||||||
|
&conn,
|
||||||
|
PostListingType::All,
|
||||||
|
&SortType::New,
|
||||||
|
None,
|
||||||
|
Some(user_id),
|
||||||
|
None,
|
||||||
|
None,
|
||||||
|
None,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
None,
|
||||||
|
Some(std::i64::MAX),
|
||||||
|
)?;
|
||||||
|
|
||||||
for post in &posts {
|
for post in &posts {
|
||||||
let post_form = PostForm {
|
let post_form = PostForm {
|
||||||
|
|
Reference in a new issue