Commit Graph

940 Commits

Author SHA1 Message Date
barisusakli
b5fb7691cd optimize getUnreadByField
only get the most recent 100 notifications
dont call UserNotifications.getNotifications which does alot more work,
call the db directly
2014-10-17 17:20:45 -04:00
barisusakli
9e8be432b3 notification changes
-only send a notification when the person you follow creates a topic
-you still get a notification per post if you are following a topic
-changed notifications.push so that it sends the notifications over a
period of time, currently to 50 users per second
-optimized topics.notifyFollowers and
user.notifications.sendTopicNotification, they no longer query the
database for the topic and post data instead they get it as params
-you can no longer follow yourself :)
-changed mongo sortedSetRemove so that it doesn't use $in if there is
only a single value to remove
2014-10-15 21:55:31 -04:00
Steve Lacy
3ff7719cd4 add hook: filter: user.updateProfile 2014-10-15 16:26:40 -07:00
barisusakli
761f56aeb1 removed most of the db.sortedSetCards 2014-10-14 23:12:47 -04:00
psychobunny
729ed6fbda all your semi-colons are belongs to me 2014-10-08 12:18:32 -04:00
barisusakli
348911fd2d closes #2195 2014-10-06 16:03:59 -04:00
barisusakli
33780e6fdb closes #2133 2014-10-03 14:14:41 -04:00
barisusakli
cf252a29a7 closes #2196 2014-10-01 15:32:54 -04:00
barisusakli
977cd98a79 dont crash if user doesn't have email 2014-10-01 00:29:51 -04:00
barisusakli
5ff293109d fix getUnreadByField 2014-09-30 23:20:25 -04:00
barisusakli
d303dea6c7 closes #1986 2014-09-29 12:30:07 -04:00
barisusakli
bedadd8b5f #2137 2014-09-24 00:07:24 -04:00
barisusakli
64c51d5cba check nid before pusing and marking read 2014-09-23 16:02:23 -04:00
barisusakli
c640e01969 show stack 2014-09-21 22:07:08 -04:00
barisusakli
3d4dad226e crash fix 2014-09-19 19:24:28 -04:00
psychobunny
d6e0be52ce companion to 48c123592e - prevent deleting your own account if you're admin 2014-09-17 12:59:34 -04:00
barisusakli
4b80bbb9c4 optimized user.delete 2014-09-16 22:25:12 -04:00
Julian Lam
b80b0e1e99 re: #2098, chat message emails are now opt-in 2014-09-16 13:54:03 -04:00
barisusakli
e10fbfa0d2 Merge remote-tracking branch 'origin/0.5.1' into hashtalk 2014-09-14 12:08:23 -04:00
barisusakli
b3d9db10f2 notification fixes
made post notifications unique per post so they dont overwrite other
types.
2014-09-14 12:07:27 -04:00
barisusakli
dc441c2873 check err 2014-09-14 12:07:24 -04:00
barisusakli
4e6719e0aa added filterUids method to privileges
used to filter uids on a single category
2014-09-14 12:07:24 -04:00
barisusakli
493d0dea1e part 1 of notif refactor 2014-09-14 12:07:23 -04:00
barisusakli
e34ef71acd fixed resetLockout 2014-09-12 19:07:06 -04:00
barisusakli
6cd84ebe81 removed parseInt from sorts 2014-09-07 13:03:06 -04:00
barisusakli
57e204df8e removed most of the debug
dont get more than 6 usernames for upvote tooltips
generatePostPaths wont check null pids
2014-09-06 20:46:18 -04:00
barisusakli
3f96532c3f disabled 2 calls 2014-09-06 01:07:03 -04:00
barisusakli
877cf1e15c derp 2014-09-05 01:36:30 -04:00
barisusakli
e5795687bb fix settings on mongo 2014-09-04 01:34:31 -04:00
barisusakli
2073d994fc limit topicsperpage postsPerPage to 20 2014-09-03 12:00:25 -04:00
Julian Lam
e6d0eede4f pruning empy notifications for daily emailer 2014-09-02 18:36:58 -04:00
barisusakli
14fcd36134 closes #2028 2014-08-30 15:39:20 -04:00
barisusakli
576081e25f delete user ignored cids on account delete 2014-08-29 16:40:06 -04:00
barisusakli
ba4b98de0e email and username checks on profile update 2014-08-27 16:06:49 -04:00
barisusakli
d67cd489cd crash fix 2014-08-27 14:09:15 -04:00
barisusakli
eef200be10 closes #1284 2014-08-26 13:47:53 -04:00
barisusakli
24ea74dc41 lol
O(log(n)) to O(1) and away
2014-08-17 22:10:16 -04:00
barisusakli
05fdc945f3 closes #1993 2014-08-17 00:14:45 -04:00
barisusakli
5ae7c92d55 notifications refactor
added getMultiple which works with an array of nids
2014-08-16 23:25:30 -04:00
barisusakli
c58712e2a9 closes #1971 2014-08-14 08:34:38 -04:00
barisusakli
c9c454825e closes #1369 2014-08-13 21:42:04 -04:00
barisusakli
005405b16c closes #1976 2014-08-12 21:41:23 -04:00
barisusakli
c4b083330c closes #1978 2014-08-11 18:07:56 -04:00
barisusakli
c8084e9b2e closes #1978 2014-08-11 16:26:20 -04:00
barisusakli
5b681678b1 could use async.apply here hm 2014-08-08 17:42:03 -04:00
barisusakli
f39d772a40 if notification is purged delete from user mapping as well 2014-08-07 00:17:26 -04:00
psychobunny
bb48bdb008 closes #1942 2014-08-05 15:12:23 -04:00
barisusakli
3163f70ef2 add tid to post notification so its marked read on entry 2014-08-01 14:07:01 -04:00
barisusakli
de6e74c50e #1914 2014-07-31 08:57:27 -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