let user_id = claims.id;
// 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 {
let comment_form = CommentForm {
}
// 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 {
let post_form = PostForm {
joinable!(user_ban -> user_ (user_id));
allow_tables_to_appear_in_same_query!(
- category,
- comment,
- comment_like,
- comment_saved,
- community,
- community_follower,
- community_moderator,
- community_user_ban,
- mod_add,
- mod_add_community,
- mod_ban,
- mod_ban_from_community,
- mod_lock_post,
- mod_remove_comment,
- mod_remove_community,
- mod_remove_post,
- mod_sticky_post,
- post,
- post_like,
- post_read,
- post_saved,
- site,
- user_,
- user_ban,
+ category,
+ comment,
+ comment_like,
+ comment_saved,
+ community,
+ community_follower,
+ community_moderator,
+ community_user_ban,
+ mod_add,
+ mod_add_community,
+ mod_ban,
+ mod_ban_from_community,
+ mod_lock_post,
+ mod_remove_comment,
+ mod_remove_community,
+ mod_remove_post,
+ mod_sticky_post,
+ post,
+ post_like,
+ post_read,
+ post_saved,
+ site,
+ user_,
+ user_ban,
);