41 Commits (c7b5cd48bae54f67fe93e523f53aeb86587092fd)

Author SHA1 Message Date
Barış Soner Uşaklı c7b5cd48ba closes #2773 10 years ago
barisusakli 83663cf46b removed unused require 10 years ago
barisusakli c33b369858 closes #2658 10 years ago
barisusakli 4b3aa26abd closes #2633 10 years ago
barisusakli 6b13a84d2f removed extra priv checks
-removed category check from recentreplies since pids are already
checked
-removed category check from topics/unread.js since topics are filtered
now
-added array checks to src/topics.js
11 years ago
barisusakli 545dbbf0df check err and tids 11 years ago
Julian Lam 20ea40133b added four new hooks: filter:categories.recent, filter:privileges.categories.get, filter:privileges.posts.filter, filter:privileges.topics.filter 11 years ago
barisusakli c56b9aafff closes #2289, replace Infinity with '+inf' 11 years ago
barisusakli 040d7b8424 limit unread to 100 tids 11 years ago
barisusakli 835c58d27d mark read after infinite scroll
dont mark read if already read
11 years ago
barisusakli 6aa53b8323 nextStart changes, fixed move topic notification text 11 years ago
barisusakli 2bc7007953 removed sendUnread function 11 years ago
barisusakli 5fc760c6c4 unread changes 11 years ago
barisusakli 998ed24589 check topic cid 11 years ago
barisusakli 21f65cbb6a crash fix 11 years ago
barisusakli 4de658e096 checks 11 years ago
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