Commit graph

27 commits

Author SHA1 Message Date
Sacha Greif
b129b4b826 get limit from terms 2015-01-06 14:45:10 +09:00
Sacha Greif
b1f575d745 limit to 200 posts max even for admins; sort single day view by score, not baseScore; fix daily view limited to 10 posts bug 2015-01-06 11:26:44 +09:00
Sacha Greif
20ec10809b add limit of 200 posts to avoid DoS problems 2014-12-27 11:56:27 +09:00
Sacha Greif
035d5c51c9 accept limit = 0 to signify "no limit" 2014-12-10 10:52:03 +09:00
Sacha Greif
4fc5091a97 fix digest parameters bug (fix #609) 2014-12-10 09:48:24 +09:00
Sacha Greif
7879172c5d refactoring parameters to simplify showing/hiding future posts, and adding "scheduled" view 2014-12-08 16:39:10 +09:00
Sacha Greif
242bf4e783 fix pending view bug by including posts without a postedAt property as well 2014-12-06 18:06:51 +09:00
Sacha Greif
33f8f066ec display future posts in pending view 2014-12-05 08:21:02 +09:00
Charlie DeTar
ed09d0ea7c Fully abstract isAdmin
We're using a fork with a different definition of "isAdmin" (using
``meteor-roles`` rather than the boolean user.isAdmin).  ``lib/user.js``
provides abstracted methods for reading admin state, which makes it very
easy to change our definition -- except that the abstractions weren't
used universally.

This commit finishes the job of using the abstractions, and adds a few
new parts to also allow abstracting setting and updating admin-ness:

 - setAdmin: sets admin status directly on a user object.
 - updateAdmin: executes a mongo update to set admin status.
 - adminMongoQuery: the query parameter for admin-ness, for composing
   user queries with other fields.
 - notAdminMongoQuery: the query parameter for not-admin-ness.
2014-10-03 16:21:06 -06:00
Delgermurun
4fd7c444e5 use getPostsParameters on posts rss 2014-09-29 16:31:41 +08:00
Delgermurun
1aef145973 use STATUS_APPROVED constant on getPostsParameters 2014-09-29 16:24:47 +08:00
Delgermurun
b5edbdf08e exclude future scheluded posts 2014-09-29 15:45:40 +08:00
Delgermurun
0ff3fc7dba rename getParameters to getPostParameters 2014-09-29 15:42:35 +08:00
Sacha Greif
c0dc98f7bf fixing categories 2014-09-08 17:39:59 +09:00
Sacha Greif
d25f644c2c Profile tweaks; display more posts 2014-09-01 09:52:40 +09:00
Sacha Greif
92fc3ee5fa working on recently commented lens; tweaking parameters system 2014-07-22 11:29:01 +09:00
Sacha Greif
69d59575e7 tweaks 2014-06-23 12:31:59 +09:00
Sacha Greif
d97df27f7f finishing view parameters flexibiltification 2014-06-23 12:28:40 +09:00
Sacha Greif
591ae27014 adding telescope-lib package for utility functions 2014-06-23 12:08:01 +09:00
Christian Bundy
86ec3ede93 Solve trivial JS errors
Using jshint and and fixmyjs I went through and removed 220 trivial
Javascript errors – mostly missing semicolons, and some properties that
weren’t written in dot notation. You can view the diff of jshint’s
output here:
https://gist.github.com/christianbundy/7b37c51bb6f7c8d739e7/revisions
2014-05-06 20:15:48 -07:00
Sacha Greif
c461cd78b0 refactoring subscriptions (thanks @Arunoda!) 2013-11-17 08:01:56 +09:00
Sacha Greif
5c47069519 give search results their own route 2013-11-16 14:01:00 +09:00
Sacha Greif
ad9bea13ed refactored invites and user dashboard a bit 2013-11-14 10:49:37 +09:00
Sacha Greif
1c5c8fb575 improved user dashboard even more! 2013-11-08 11:10:23 +09:00
Sacha Greif
f2fbb98d8c added better user filtering/sorting 2013-11-08 09:47:23 +09:00
Sacha Greif
7da1dc26b1 enable filtering users list 2013-11-04 22:05:19 +09:00
Sacha Greif
6c5ef50560 make getParameters available for server too 2013-10-26 11:41:53 +09:00