125 Commits (23f212a4c0aca967f08f8bba06d06ebf49d1c7ac)

Author SHA1 Message Date
barisusakli 0a936e5dd1 unreadTids 11 years ago
barisusakli 51eac70f67 fixed derp 11 years ago
barisusakli 32257c9b2f updateUnreadCount 11 years ago
barisusakli 493d0dea1e part 1 of notif refactor 11 years ago
barisusakli 01f983e29c markAsRead improvement
takes in an array of tids instead of marking topics read 1 by 1
same for the category.markAsRead function
11 years ago
psychobunny 099a04c1c8 disabling pushUnreadCount for now, perhaps this might be good on redis too? 11 years ago
psychobunny 07376c9a4c look for unread only for today 11 years ago
barisusakli 3f96532c3f disabled 2 calls 11 years ago
barisusakli 761d59f5ec each limit on pushUnreadCount 11 years ago
barisusakli 197226eea6 closes #1742 11 years ago
barisusakli acef614147 removed 2 BS classes 11 years ago
barisusakli 522fda2e58 closes #1936 11 years ago
barisusakli b5cc852551 do a single filter after getting all unread tids 11 years ago
barisusakli c217834165 fixed typo 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 d7520508e3 #1375 part1 11 years ago
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
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
Julian Lam 87f4566e06 more fixed to privs, and ACP modal 11 years ago
Micheil Smith 3e82cab398 Add missing new lines at end of files. 11 years ago
barisusakli e5cf44d398 closes #1353
mark all read will mark everything read, can also select topics and mark
them read, can mark specific categories read too
11 years ago
barisusakli 038a833125 check to see if there are topics 11 years ago
barisusakli db3632557e moved notification push out of markAsRead 11 years ago
barisusakli bac3cf03cb moved unread to new file 11 years ago