Removing local_user from LocalImageView.

create_local_image_view
Dessalines 2024-04-16 08:51:40 -04:00
parent e1ac246292
commit 86d7086aad
2 changed files with 1 additions and 6 deletions

View File

@ -19,11 +19,7 @@ impl LocalImageView {
let mut query = local_image::table let mut query = local_image::table
.inner_join(local_user::table) .inner_join(local_user::table)
.inner_join(person::table.on(local_user::person_id.eq(person::id))) .inner_join(person::table.on(local_user::person_id.eq(person::id)))
.select(( .select((local_image::all_columns, person::all_columns))
local_image::all_columns,
local_user::all_columns,
person::all_columns,
))
.order_by(local_image::published.desc()) .order_by(local_image::published.desc())
.into_boxed(); .into_boxed();

View File

@ -223,6 +223,5 @@ pub struct VoteView {
/// A local image view. /// A local image view.
pub struct LocalImageView { pub struct LocalImageView {
pub local_image: LocalImage, pub local_image: LocalImage,
pub local_user: LocalUser,
pub person: Person, pub person: Person,
} }