barisusakli
f15631c3e1
topic notification nid doesn't need post id
10 years ago
barisusakli
224218f519
fix missing callback
10 years ago
barisusakli
304f5b1c76
removed duped and empty bodyLong
11 years ago
barisusakli
6802bf7ce9
closes #2284
11 years ago
barisusakli
93d4a7c1f1
fix notifications to actually get recent
11 years ago
barisusakli
7bf655541c
cleanup and optimize notifications
11 years ago
barisusakli
cfd7edbf34
added nid
11 years ago
barisusakli
b5fb7691cd
optimize getUnreadByField
...
only get the most recent 100 notifications
dont call UserNotifications.getNotifications which does alot more work,
call the db directly
11 years ago
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
11 years ago
barisusakli
761f56aeb1
removed most of the db.sortedSetCards
11 years ago
barisusakli
cf252a29a7
closes #2196
11 years ago
barisusakli
5ff293109d
fix getUnreadByField
11 years ago
barisusakli
d303dea6c7
closes #1986
11 years ago
barisusakli
64c51d5cba
check nid before pusing and marking read
11 years ago
barisusakli
3d4dad226e
crash fix
11 years ago
barisusakli
b3d9db10f2
notification fixes
...
made post notifications unique per post so they dont overwrite other
types.
11 years ago
barisusakli
dc441c2873
check err
11 years ago
barisusakli
4e6719e0aa
added filterUids method to privileges
...
used to filter uids on a single category
11 years ago
barisusakli
493d0dea1e
part 1 of notif refactor
11 years ago
barisusakli
6cd84ebe81
removed parseInt from sorts
11 years ago
barisusakli
57e204df8e
removed most of the debug
...
dont get more than 6 usernames for upvote tooltips
generatePostPaths wont check null pids
11 years ago
barisusakli
3f96532c3f
disabled 2 calls
11 years ago
barisusakli
877cf1e15c
derp
11 years ago
barisusakli
14fcd36134
closes #2028
11 years ago
barisusakli
d67cd489cd
crash fix
11 years ago
barisusakli
24ea74dc41
lol
...
O(log(n)) to O(1) and away
11 years ago
barisusakli
05fdc945f3
closes #1993
11 years ago
barisusakli
5ae7c92d55
notifications refactor
...
added getMultiple which works with an array of nids
11 years ago
barisusakli
f39d772a40
if notification is purged delete from user mapping as well
11 years ago
barisusakli
3163f70ef2
add tid to post notification so its marked read on entry
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
f71bd41408
more fixes
11 years ago
barisusakli
dfb6606432
one more fix
11 years ago
barisusakli
08ba683c7d
fix callback
11 years ago
barisusakli
d7520508e3
#1375 part1
11 years ago
barisusakli
c9fb5b3e11
changed user posted notification to include title
...
dont send 2 notifications if you are already following topic
11 years ago
barisusakli
49a9601a04
closes #1752
11 years ago
Julian Lam
d229cd21b2
parsing the post content that's passed into bodyLong in notifs #1720
11 years ago
Julian Lam
c41bb05711
final pass #1720 , closed #1720
11 years ago
Julian Lam
d257632878
first pass #1720 , updating existing calls to notifications.create, backwards compatibility in case plugins create notifications too.
11 years ago
barisusakli
4c2765a79c
closes #1679
11 years ago
barisusakli
d1c2c87510
fixed double index in post notification
11 years ago
barisusakli
6b93095204
more link fixes
11 years ago
barisusakli
e20920c536
closes #1630
11 years ago
frissdiegurke
590604b288
fixed wrong calls of getSortedSetRevRangeByScore
11 years ago
barisusakli
92db112367
reverted previous commit
11 years ago
barisusakli
f0428f5f1f
removed double post notification #1386
11 years ago
barisusakli
f9897daad1
all notifications are translated now closes #1388
11 years ago
psychobunny
e5486db1ae
Merge branch 'code-quality' of https://github.com/miksago/NodeBB into miksago-code-quality
...
Conflicts:
src/database.js
11 years ago
barisusakli
9d405812cb
changed sortedSetRangeByScore
11 years ago