125 Commits (23f212a4c0aca967f08f8bba06d06ebf49d1c7ac)

Author SHA1 Message Date
Peter Jaszkowiak 1ed571189c Make utils and translator easier to require
Move utils.walk to file.walk, backwards compatible
8 years ago
Julian Lam 860999fa6c Merge remote-tracking branch 'origin/master' into develop 8 years ago
barisusakli 0c8058ba9d closes #5516 8 years ago
Julian Lam 72e77772db Merge branch 'master' into develop 8 years ago
Peter Jaszkowiak 1493afee2a ESlint indent 8 years ago
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks 8 years ago
Peter Jaszkowiak a5a3f3089a ESlint no-mixed-operators 8 years ago
Peter Jaszkowiak 277a7fb8b4 ESlint key-spacing, no-trailing-spaces 8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 8 years ago
barisusakli 366ab103a4 closes #5405 8 years ago
barisusakli 49267d54b7 topics unread tests 8 years ago
barisusakli fb47bf3889 unread/recent changes closes #4774 8 years ago
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule 9 years ago
barisusakli 4ce8e2224a optimize topics.markTopicNotificationsRead
let's not call it once for each tid
9 years ago
barisusakli 4bbc8110a9 closes #4772 9 years ago
barisusakli 11d3834eb9 better filtering
if topic is followed but category ignored show it in unread
9 years ago
barisusakli bf2133ed7c topic watching 9 years ago
barisusakli 84a7b6690b closes #4434 9 years ago
barisusakli ec33a57f77 closes #3128 9 years ago
Ben Lubar 217f0c5652 Switch to a named filter for unread to allow future expansion.
Don't use the query string as it is not passed to infinite scroll.
9 years ago
Ben Lubar a61d947295 allow filtering /unread to only topics that have not yet been seen 9 years ago
pichalite 5f6a1a0acd complete fixes for #4144 9 years ago
barisusakli aa30973f0a fix params 9 years ago
barisusakli c28494724f filter dupes 9 years ago
barisusakli eb57276980 fix test 9 years ago
barisusakli c10b2fdb60 closes #4022 9 years ago
barisusakli 7ad90b4ef6 closes #2659 9 years ago
barisusakli 1ecf27417a removed commented out stuff removed topics.enter 9 years ago
barisusakli 5e5cafafd0 make one socket call to load unread counts 10 years ago
barisusakli 872080d832 dont mark read if topic is not in topics:recent 10 years ago
barisusakli 47cc1083df fix mark all read 10 years ago
barisusakli 81eeab42ed category filter on /unread 10 years ago
barisusakli b7b44e13b1 added privileges.topics.filterUids
if a topic is deleted and user doesn't have permissions/admin/mod dont
send notifs
10 years ago
cismous 68cf6833b7 remove unneeded argument 10 years ago
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
10 years ago
barisusakli 545dbbf0df check err and tids 10 years ago
Julian Lam 20ea40133b added four new hooks: filter:categories.recent, filter:privileges.categories.get, filter:privileges.posts.filter, filter:privileges.topics.filter 10 years ago
barisusakli c56b9aafff closes #2289, replace Infinity with '+inf' 10 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