Commit Graph

87 Commits

Author SHA1 Message Date
Julian Lam
0a38a783c7 TravisCI is TOO DAMN FAST 2014-11-04 18:59:26 -05:00
barisusakli
e769ebe668 closes #2347 2014-11-04 15:56:33 -05:00
psychobunny
50b264ac7d prevent deleted users belonging to a group from breaking edit functionality 2014-10-29 21:07:46 -04:00
Martin Freisen
a258f2b20b include plugins for the hooks to work 2014-09-27 00:54:51 +02:00
Martin Freisen
ab90d7b9d4 added hooks action:groups.join and action:groups.leave 2014-09-27 00:23:44 +02:00
barisusakli
7d93926ef7 removed async.map 2014-09-20 23:04:49 -04:00
psychobunny
16accf6cd0 fixing groups.leave 2014-09-17 18:32:38 -04:00
barisusakli
0a936e5dd1 unreadTids 2014-09-16 12:38:31 -04:00
barisusakli
7a61645256 less db calls 2014-09-14 12:07:25 -04:00
barisusakli
4e6719e0aa added filterUids method to privileges
used to filter uids on a single category
2014-09-14 12:07:24 -04:00
barisusakli
779b2a8d73 optimize queries 2014-09-06 00:58:03 -04:00
barisusakli
ca90afd544 #1992
(drunk) not even done yet
2014-08-16 21:33:42 -04:00
barisusakli
b8279dc737 optimize getUserGroups to work with multiple user ids 2014-08-09 02:07:03 -04:00
barisusakli
76b257f7b8 optimized User.getUsers 2014-08-06 12:39:14 -04:00
barisusakli
97909a6cac err checks 2014-08-01 18:21:39 -04:00
barisusakli
d9a0af712d group null and err check 2014-07-31 08:01:11 -04:00
barisusakli
dc68dce27f check err 2014-07-31 07:38:19 -04:00
root---
f2d07d3182 fix fatal error when renaming group with no users 2014-07-31 01:39:41 -04:00
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.
2014-07-29 21:51:46 -04:00
Julian Lam
b7d27fe48b god damnit @barisusakli :P 2014-07-25 16:57:36 -04:00
barisusakli
fde8e9d90f on group destroy, remove it from all groups
previously if a group was destroyed it was left behind in privilege
groups
2014-07-23 13:32:23 -04:00
barisusakli
8113ed6a4d closes #1883, no upgrade script #successkid 2014-07-23 03:09:07 -04:00
barisusakli
054ceab0be isMemberOfGroups fix 2014-07-23 00:36:03 -04:00
barisusakli
5292bdad5a closes #1871 2014-07-22 15:39:23 -04:00
Aziz Khoury
ed7631cab5 tab indent fix 2014-07-15 13:39:02 -04:00
Aziz Khoury
d1f97723e7 Group.join() callback made optional 2014-07-15 13:32:21 -04:00
barisusakli
64d04f7aa6 closes #1803 2014-07-07 17:36:14 -04:00
barisusakli
d57f183f42 privileges.posts.get takes an array of pids now 2014-06-28 14:59:01 -04:00
barisusakli
c3a9767bf6 late night optimizations
-isMemberOfSets returns true/false instead of 1/0
-when loading the posts of a topic only get the userdata for each user
once, before this commit if a topic had 10 posts from 2 different users
we were getting the user data for each user 5 times (drunk)
-getVoteStatusByPostIDs and getFavouritesByPostIDs no longer make
pids.length calls to the db, they use isMemberOfSets now
-getUserInfoForPost renamed to getUserInfoForPosts and doesnt make
uids.length calls to db, uses getMultipleUserFields instead
2014-06-28 01:03:26 -04:00
barisusakli
03ec1c3216 added group.hide back into groups.join 2014-06-18 20:00:01 -04:00
barisusakli
3c44beb4bb group userTitle default 2014-06-16 13:10:00 -04:00
barisusakli
ab80016910 fixed group hide for privilege groups 2014-06-14 18:26:16 -04:00
barisusakli
07275b5fc4 some checks to make last admin isnt removed 2014-06-13 22:48:24 -04:00
barisusakli
42d03cc491 closes #1678 2014-06-13 18:27:03 -04:00
barisusakli
3b1e373e7b group titles 2014-06-12 18:53:58 -04:00
Julian Lam
eb2929f497 removing slufigication when checking for group existence 2014-05-26 21:37:50 -04:00
Julian Lam
3baf00208f slugifying group name when checking for existence 2014-05-26 21:13:18 -04:00
Julian Lam
f20926f93d finished up group list and group details pages - closed #1563 2014-05-23 09:49:18 -04:00
Julian Lam
8a510c340b limiting user and group creation so that their slugs can't intersect. 2014-05-22 10:21:27 -04:00
Julian Lam
1d7c293197 added option to remove ephemeralGroups from groups listing 2014-05-21 11:30:32 -04:00
Julian Lam
b1534b7798 removing allowGuestPosting logic in NodeBB 2014-05-16 16:29:43 -04:00
Julian Lam
c297e2f2f8 ephemeral groups - guests 2014-05-16 15:10:06 -04:00
barisusakli
0ac58dbee6 more error strings 2014-04-09 21:56:30 -04:00
Julian Lam
d1a64798b9 removing use of slugs in groups... pending having more time 2014-04-09 14:46:18 -04:00
Julian Lam
bd2a1a3efa Revert "reverting groups.js to 4701eb1cee1a35b7f059f4362773bd9d67b7370c"
This reverts commit d8df9ab3ed.
2014-04-09 14:37:16 -04:00
psychobunny
d8df9ab3ed reverting groups.js to 4701eb1cee 2014-04-09 14:11:03 -04:00
Julian Lam
49a686af78 fixing groups tests 2014-04-08 17:37:11 -04:00
Julian Lam
14b9c03199 First pass at #1331 - Groups.search() + Tests 2014-04-05 13:01:31 -04:00
Julian Lam
4701eb1cee updating groups so that members leave a group when it is deleted 2014-03-21 09:27:13 -04:00
Julian Lam
0e44eb8629 final refactoring pass for groups -- #1252 2014-03-20 16:26:00 -04:00