mirror of https://github.com/LemmyNet/lemmy.git
Removing local_user from LocalImageView.
parent
e1ac246292
commit
86d7086aad
|
@ -19,11 +19,7 @@ impl LocalImageView {
|
|||
let mut query = local_image::table
|
||||
.inner_join(local_user::table)
|
||||
.inner_join(person::table.on(local_user::person_id.eq(person::id)))
|
||||
.select((
|
||||
local_image::all_columns,
|
||||
local_user::all_columns,
|
||||
person::all_columns,
|
||||
))
|
||||
.select((local_image::all_columns, person::all_columns))
|
||||
.order_by(local_image::published.desc())
|
||||
.into_boxed();
|
||||
|
||||
|
|
|
@ -223,6 +223,5 @@ pub struct VoteView {
|
|||
/// A local image view.
|
||||
pub struct LocalImageView {
|
||||
pub local_image: LocalImage,
|
||||
pub local_user: LocalUser,
|
||||
pub person: Person,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue