Running cargo fmt.

pull/722/head
Dessalines 2019-10-15 15:10:42 -07:00
parent 903d73d665
commit 536313889d
2 changed files with 50 additions and 26 deletions

View File

@ -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 {

View File

@ -305,28 +305,28 @@ joinable!(site -> user_ (creator_id));
joinable!(user_ban -> user_ (user_id)); joinable!(user_ban -> user_ (user_id));
allow_tables_to_appear_in_same_query!( allow_tables_to_appear_in_same_query!(
category, category,
comment, comment,
comment_like, comment_like,
comment_saved, comment_saved,
community, community,
community_follower, community_follower,
community_moderator, community_moderator,
community_user_ban, community_user_ban,
mod_add, mod_add,
mod_add_community, mod_add_community,
mod_ban, mod_ban,
mod_ban_from_community, mod_ban_from_community,
mod_lock_post, mod_lock_post,
mod_remove_comment, mod_remove_comment,
mod_remove_community, mod_remove_community,
mod_remove_post, mod_remove_post,
mod_sticky_post, mod_sticky_post,
post, post,
post_like, post_like,
post_read, post_read,
post_saved, post_saved,
site, site,
user_, user_,
user_ban, user_ban,
); );