Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mohammad Dwikurnia Apriadi
Diskuy-Backend
Commits
450ebd87
Commit
450ebd87
authored
Feb 15, 2021
by
Muhammad Rafif Elfazri
Browse files
Fix pagination on post
parent
92aa64fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/diskuy_web/controllers/post_pages_controller.ex
View file @
450ebd87
...
...
@@ -6,7 +6,7 @@ defmodule DiskuyWeb.PostPagesController do
# Pages Per threads
def
pages_thread
(
conn
,
%{
"thread_id"
=>
thread_id
})
do
query
=
ForumPostPage
.
page_per_thread
(
thread_id
)
|>
Repo
.
paginate
()
query
=
ForumPostPage
.
page_per_thread
(
thread_id
)
paginate_and_render
(
conn
,
query
)
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment