mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-18 06:57:59 +01:00
Ensure communication lists are filtered for approval
This commit is contained in:
parent
38af26db71
commit
cdeb792cbc
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ h2 Search Results
|
||||||
- route = fn p -> ~p"/comments?#{p}" end
|
- route = fn p -> ~p"/comments?#{p}" end
|
||||||
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @comments, route: route, params: [cq: @conn.params["cq"]], conn: @conn
|
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @comments, route: route, params: [cq: @conn.params["cq"]], conn: @conn
|
||||||
|
|
||||||
= for {body, comment} <- @comments, comment.image.hidden_from_users == false do
|
= for {body, comment} <- @comments, comment.image.hidden_from_users == false and can_view_communication?(@conn, comment) do
|
||||||
= render PhilomenaWeb.CommentView, "_comment_with_image.html", body: body, comment: comment, conn: @conn
|
= render PhilomenaWeb.CommentView, "_comment_with_image.html", body: body, comment: comment, conn: @conn
|
||||||
|
|
||||||
.block
|
.block
|
||||||
|
|
|
@ -17,7 +17,7 @@ h2 Search Results
|
||||||
- route = fn p -> ~p"/posts?#{p}" end
|
- route = fn p -> ~p"/posts?#{p}" end
|
||||||
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @posts, route: route, params: [pq: @conn.params["pq"]], conn: @conn
|
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @posts, route: route, params: [pq: @conn.params["pq"]], conn: @conn
|
||||||
|
|
||||||
= for {body, post} <- @posts, post.topic.hidden_from_users == false do
|
= for {body, post} <- @posts, post.topic.hidden_from_users == false and can_view_communication?(@conn, post) do
|
||||||
div
|
div
|
||||||
h3
|
h3
|
||||||
=<> link post.topic.forum.name, to: ~p"/forums/#{post.topic.forum}"
|
=<> link post.topic.forum.name, to: ~p"/forums/#{post.topic.forum}"
|
||||||
|
|
Loading…
Reference in a new issue