Skip to content

Commit

Permalink
Only count public pastes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynes committed Jan 6, 2012
1 parent c1c09e3 commit 5f3160c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/refheap/views/paste.clj
Expand Up @@ -87,7 +87,7 @@
(render-paste-preview paste))])

(defn all-pastes-page [page]
(let [paste-count (paste/count-pastes)]
(let [paste-count (paste/count-pastes false)]
(if (> page (paste/count-pages paste-count 20))
(redirect "/paste")
(layout
Expand Down

0 comments on commit 5f3160c

Please sign in to comment.