mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
more filters
This commit is contained in:
parent
98260fac9f
commit
19f9cf7db4
1 changed files with 6 additions and 3 deletions
|
@ -42,7 +42,8 @@ defmodule PhilomenaWeb.ProfileController do
|
|||
%{term: %{hidden_from_users: false}}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
sort: %{posted_at: :desc}
|
||||
},
|
||||
%{page_size: 3},
|
||||
Comment |> preload(user: [awards: :badge], image: :tags)
|
||||
|
@ -62,10 +63,12 @@ defmodule PhilomenaWeb.ProfileController do
|
|||
must: [
|
||||
%{term: %{user_id: user.id}},
|
||||
%{term: %{anonymous: false}},
|
||||
%{term: %{hidden_from_users: false}}
|
||||
%{term: %{hidden_from_users: false}},
|
||||
%{term: %{access_level: "normal"}}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
sort: %{created_at: :desc}
|
||||
},
|
||||
%{page_size: 6},
|
||||
Post |> preload(user: [awards: :badge], topic: :forum)
|
||||
|
|
Loading…
Reference in a new issue