Commit Graph

12 Commits (8bbd7d971b83371c1d61d7e9f47c1a4b41c99f7c)

Author SHA1 Message Date
barisusakli 38dd3d4281 search newer/older than and better pagination
barisusakli 832430ed37 dont crash if post.user or post.category doesn't exist
barisusakli 5c0bcd7e5d proper qs, pagination on search results
barisusakli 161b934827 reply count filter atleast/atmost
barisusakli def600e927 search in categories and children
barisusakli ce9c17f8e5 ability to search posts by user
barisusakli 60f1b9679a search filters
barisusakli bc00d7d159 check just in case
barisusakli ca90afd544
(drunk) not even done yet
barisusakli fed8cc6d53 optimize privileges and assorted fixes.
* new methods
privileges.categories.filter
privileges.topics.filter
privileges.posts.filter

they take a list of ids and a privilege, and return the filtered list of
ids, faster than doing  async.filter and calling the db for each id.

* remove event listeners on recent page before adding
* group.exists works for both single group names and arrays
* helpers.allowedTo works for both a single cid and an array of cids
* moved filter:topic.post hook right before topic creation.
* moved filter:topic.reply hook right before topic reply.
barisusakli 5497b8c419 striptags
barisusakli 64d04f7aa6 closes