Commit Graph

71 Commits

Author SHA1 Message Date
barisusakli
01f983e29c markAsRead improvement
takes in an array of tids instead of marking topics read 1 by 1
same for the category.markAsRead function
2014-09-10 21:44:19 -04:00
psychobunny
099a04c1c8 disabling pushUnreadCount for now, perhaps this might be good on redis too? 2014-09-06 02:22:26 -04:00
psychobunny
07376c9a4c look for unread only for today 2014-09-06 02:22:25 -04:00
barisusakli
3f96532c3f disabled 2 calls 2014-09-06 01:07:03 -04:00
barisusakli
761d59f5ec each limit on pushUnreadCount 2014-09-02 01:34:26 -04:00
barisusakli
197226eea6 closes #1742 2014-08-29 15:57:20 -04:00
barisusakli
acef614147 removed 2 BS classes 2014-08-29 14:50:24 -04:00
barisusakli
522fda2e58 closes #1936 2014-08-15 18:11:57 -04:00
barisusakli
b5cc852551 do a single filter after getting all unread tids 2014-08-09 16:15:22 -04:00
barisusakli
c217834165 fixed typo 2014-07-31 17:44:13 -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
barisusakli
d7520508e3 #1375 part1 2014-07-28 18:18:20 -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
472e6b5206 privilege cleanup 2014-05-17 18:59:34 -04:00
barisusakli
3e86bdb38f more work on #1518
still needs more work, category is next
2014-05-15 10:38:02 -04:00
Julian Lam
87f4566e06 more fixed to privs, and ACP modal 2014-05-13 17:06:58 -04:00
Micheil Smith
3e82cab398 Add missing new lines at end of files. 2014-04-10 20:56:53 +01:00
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
2014-04-07 17:09:59 -04:00
barisusakli
038a833125 check to see if there are topics 2014-03-24 21:53:14 -04:00
barisusakli
db3632557e moved notification push out of markAsRead 2014-03-21 17:48:32 -04:00
barisusakli
bac3cf03cb moved unread to new file 2014-03-21 15:40:37 -04:00