barisusakli
fa136ca021
remove unused code
9 years ago
barisusakli
11c70f3a28
closes #2330
10 years ago
barisusakli
3ffd3a5d3c
closes #2970 , closes #3078
10 years ago
barisusakli
b2087f94e2
closes #2904
10 years ago
Barış Soner Uşaklı
73505e9bd0
closes #2247
10 years ago
Barış Soner Uşaklı
c94c1430b7
api/post/pid route
10 years ago
Julian Lam
b65d518a97
properly handling error for hook filter:privileges.posts.filter
10 years ago
Julian Lam
20ea40133b
added four new hooks: filter:categories.recent, filter:privileges.categories.get, filter:privileges.posts.filter, filter:privileges.topics.filter
10 years ago
barisusakli
c18de5cdd2
posts/recent.js refactor
10 years ago
barisusakli
06f66337fb
anon checks
...
less db calls for uid 0
10 years ago
barisusakli
37d7756271
hasEnoughRep can take an array
...
user follow uid checks
10 years ago
barisusakli
eab180f305
crash fix
10 years ago
barisusakli
4e6719e0aa
added filterUids method to privileges
...
used to filter uids on a single category
11 years ago
barisusakli
57e204df8e
removed most of the debug
...
dont get more than 6 usernames for upvote tooltips
generatePostPaths wont check null pids
11 years ago
barisusakli
0cfa430444
crash fix
11 years ago
barisusakli
7405051924
50
11 years ago
barisusakli
5fd199ae8a
check privs pids
11 years ago
barisusakli
1398937dd8
early outs for privs
...
no need to check if empty array is passed in, happens if there are no
unread topics
remove dupe cids before checking for privileges
11 years ago
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.
11 years ago
barisusakli
d57f183f42
privileges.posts.get takes an array of pids now
11 years ago
barisusakli
c191aa079f
closes #1735
11 years ago
barisusakli
bd4722665d
closes #1725
...
removed move button from main post, disable moving main post, fixed
moving posts.
11 years ago
barisusakli
9af12819e3
closes #1731
11 years ago
barisusakli
b8b482e287
closes #1555
11 years ago
barisusakli
472e6b5206
privilege cleanup
11 years ago
barisusakli
3e86bdb38f
more work on #1518
...
still needs more work, category is next
11 years ago
barisusakli
4234057821
first pass for #1518
...
this only handles postTools privileges, topic and category will follow
11 years ago