Commit Graph

95 Commits (9fa3675424a58efc7de7cb2fb66659e45c62348d)

Author SHA1 Message Date
Julian Lam 917f76feab group join/leave controls in groups list page (+ helper!)
barisusakli be11577aa4 closes
barisusakli 51c520f888 closes
barisusakli 420aa5e102 fix moderators
barisusakli 1004fb2822 closes
barisusakli a6e498bb5d error check
barisusakli 608943255b better check
barisusakli ec0624918f possible fix for
Julian Lam 0a38a783c7 TravisCI is TOO DAMN FAST
barisusakli e769ebe668 closes
psychobunny 50b264ac7d prevent deleted users belonging to a group from breaking edit functionality
Martin Freisen a258f2b20b include plugins for the hooks to work
Martin Freisen ab90d7b9d4 added hooks `action:groups.join` and `action:groups.leave`
barisusakli 7d93926ef7 removed async.map
psychobunny 16accf6cd0 fixing groups.leave
barisusakli 0a936e5dd1 unreadTids
barisusakli 7a61645256 less db calls
barisusakli 4e6719e0aa added filterUids method to privileges
used to filter uids on a single category
barisusakli 779b2a8d73 optimize queries
barisusakli ca90afd544
(drunk) not even done yet
barisusakli b8279dc737 optimize getUserGroups to work with multiple user ids
barisusakli 76b257f7b8 optimized User.getUsers
barisusakli 97909a6cac err checks
barisusakli d9a0af712d group null and err check
barisusakli dc68dce27f check err
root--- f2d07d3182 fix fatal error when renaming group with no users
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.
Julian Lam b7d27fe48b god damnit @barisusakli :P
barisusakli fde8e9d90f on group destroy, remove it from all groups
previously if a group was destroyed it was left behind in privilege
groups
barisusakli 8113ed6a4d closes , no upgrade script #successkid
barisusakli 054ceab0be isMemberOfGroups fix
barisusakli 5292bdad5a closes
Aziz Khoury ed7631cab5 tab indent fix
Aziz Khoury d1f97723e7 Group.join() callback made optional
barisusakli 64d04f7aa6 closes
barisusakli d57f183f42 privileges.posts.get takes an array of pids now
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
barisusakli 03ec1c3216 added group.hide back into groups.join
barisusakli 3c44beb4bb group userTitle default
barisusakli ab80016910 fixed group hide for privilege groups
barisusakli 07275b5fc4 some checks to make last admin isnt removed
barisusakli 42d03cc491 closes
barisusakli 3b1e373e7b group titles
Julian Lam eb2929f497 removing slufigication when checking for group existence
Julian Lam 3baf00208f slugifying group name when checking for existence
Julian Lam f20926f93d finished up group list and group details pages - closed
Julian Lam 8a510c340b limiting user and group creation so that their slugs can't intersect.
Julian Lam 1d7c293197 added option to remove ephemeralGroups from groups listing
Julian Lam b1534b7798 removing allowGuestPosting logic in NodeBB
Julian Lam c297e2f2f8 ephemeral groups - guests