Julian Lam
37d426dddb
npnp, I totally meant to remove a method that's still in use...
2015-02-25 15:56:52 -05:00
Julian Lam
29873f1c5c
removed unused .getAll method, and sorting notifications client-side so that unread notifs don't all appear at the top, #2772
2015-02-25 12:26:55 -05:00
barisusakli
756d03fa62
closes #2745
...
generate paths on retrieval instead of notification creation
also fix follow notification path
2015-02-19 18:14:38 -05:00
Julian Lam
350acde379
ability to mark a notification read/unread from dropdown list, made styling less bootstrap-locked, using FA icon in theme instead of hardcoded in template
2015-02-19 12:06:15 -05:00
barisusakli
e414008c59
closes #2584
2015-01-13 17:30:44 -05:00
barisusakli
793a0a6772
fix mark topic notifications read on enter
2014-12-18 23:28:19 -05:00
barisusakli
9e1789dc58
closes #2297
2014-11-05 20:41:31 -05:00
barisusakli
5be1c17aa7
refactor user.create
...
dont fire filter:user.create if there userData is invalid
2014-10-28 18:28:26 -04:00
barisusakli
f15631c3e1
topic notification nid doesn't need post id
2014-10-19 18:41:54 -04:00
barisusakli
224218f519
fix missing callback
2014-10-19 16:39:36 -04:00
barisusakli
304f5b1c76
removed duped and empty bodyLong
2014-10-18 17:02:37 -04:00
barisusakli
6802bf7ce9
closes #2284
2014-10-18 16:45:39 -04:00
barisusakli
93d4a7c1f1
fix notifications to actually get recent
2014-10-17 18:51:58 -04:00
barisusakli
7bf655541c
cleanup and optimize notifications
2014-10-17 18:31:20 -04:00
barisusakli
cfd7edbf34
added nid
2014-10-17 17:23:47 -04:00
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
barisusakli
761f56aeb1
removed most of the db.sortedSetCards
2014-10-14 23:12:47 -04:00
barisusakli
cf252a29a7
closes #2196
2014-10-01 15:32:54 -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
64c51d5cba
check nid before pusing and marking read
2014-09-23 16:02:23 -04:00
barisusakli
3d4dad226e
crash fix
2014-09-19 19:24:28 -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
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
14fcd36134
closes #2028
2014-08-30 15:39:20 -04:00
barisusakli
d67cd489cd
crash fix
2014-08-27 14:09:15 -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
f39d772a40
if notification is purged delete from user mapping as well
2014-08-07 00:17:26 -04:00
barisusakli
3163f70ef2
add tid to post notification so its marked read on entry
2014-08-01 14:07:01 -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
f71bd41408
more fixes
2014-07-28 18:18:22 -04:00
barisusakli
dfb6606432
one more fix
2014-07-28 18:18:21 -04:00
barisusakli
08ba683c7d
fix callback
2014-07-28 18:18:21 -04:00
barisusakli
d7520508e3
#1375 part1
2014-07-28 18:18:20 -04:00
barisusakli
c9fb5b3e11
changed user posted notification to include title
...
dont send 2 notifications if you are already following topic
2014-07-21 17:43:42 -04:00
barisusakli
49a9601a04
closes #1752
2014-06-26 13:44:02 -04:00
Julian Lam
d229cd21b2
parsing the post content that's passed into bodyLong in notifs #1720
2014-06-21 01:16:08 -04:00
Julian Lam
c41bb05711
final pass #1720 , closed #1720
2014-06-20 17:53:40 -04:00
Julian Lam
d257632878
first pass #1720 , updating existing calls to notifications.create, backwards compatibility in case plugins create notifications too.
2014-06-20 16:54:34 -04:00
barisusakli
4c2765a79c
closes #1679
2014-06-13 15:33:22 -04:00
barisusakli
d1c2c87510
fixed double index in post notification
2014-06-04 16:56:40 -04:00