Commit Graph

153 Commits (57fcb92bbcc14f265e238348e82d18e5ea357431)

Author SHA1 Message Date
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
Julian Lam c351261165 added daily cleaning of reset tokens
barisusakli b41119a374 show seconds like search page
barisusakli 2c8e8a1f1c closes , closes
Julian Lam 23b14b3443 moving nearly all startup messages to verbose type
barisusakli 283ac1578f fix null datetime error
barisusakli 9ff35a18f2 closes
barisusakli 3272ca34ee 0.6.0 cleanup
barisusakli 7bf655541c cleanup and optimize notifications
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
barisusakli 72a919e416 time based check
barisusakli cf252a29a7 closes
barisusakli 2a1f9600e6 less event logs for notif pruning
barisusakli d303dea6c7 closes
barisusakli 64c51d5cba check nid before pusing and marking read
barisusakli 515e663f85 getObjectsFix
return empty array if keys is empty or not an array
Julian Lam b85ff61de6 refactored chat notification system to wait a bit before sending notif/email, closes
barisusakli b3d9db10f2 notification fixes
made post notifications unique per post so they dont overwrite other
types.
barisusakli 9466d7ced4 faster notif prune
no need to loop tru and check datetime since notifications is a sorted
set now
barisusakli 35a903f9c8 closes
when new notifications are pushed to uids clear their old notifications.
barisusakli 5204dc1e23 removed total count
barisusakli 493d0dea1e part 1 of notif refactor
barisusakli e79c980421 delete anything older than 1 week
Baris Usakli f16ced6bcc removed path from notif, its created on the fly when retrieveing the notifications
barisusakli 9b26b60082 fixed cron
barisusakli 61e1c51ef6 run notif prune every 30mins
disabled post edit log
barisusakli 2252ab7479 notifications.prune
run every hour
dont get more than 500 notifications
barisusakli 1075305444 crash fix
barisusakli 77a7c5caef eachLimit notifications.push
barisusakli 5ae7c92d55 notifications refactor
added getMultiple which works with an array of nids
barisusakli ea2975cb3f eachLimit on expire nids
barisusakli 7d179b68df faster notif prune
barisusakli b0b78c3092 minor fix to prevent err when trying to mark null nid
barisusakli e420ee5fb6 privilege fix for single category check
barisusakli 62681c36ef if notif is deleted don't push, prevent crash
barisusakli f31978aa2c moved core notifications all the way to the end
barisusakli f71bd41408 more fixes
barisusakli d7520508e3 part1
barisusakli eea987d8dd removed console.log
Julian Lam 91ce3634fc fixed
Julian Lam 458e294293 switched validator library out in favour of String lib
Julian Lam c41bb05711 final pass , closed
Julian Lam d257632878 first pass , updating existing calls to notifications.create, backwards compatibility in case plugins create notifications too.
Julian Lam dedc6d8154 added new hook for notification pushing
barisusakli ce1934e566 closes
barisusakli 4570edb122 closes
Julian Lam 3baf00208f slugifying group name when checking for existence
barisusakli 66701afdaa closes
fixes the notification image too, the property was called image not
picture
Julian Lam 3849b2d6b3 added pushGroup method to notifications object
barisusakli ac65655384 fixed missing return
barisusakli c7744d7a64 closes
Julian Lam 08cf6bc5e6 fixed -- made checkReplace error-first, added missing callback, added missing object field to db query
Julian Lam e65896351a checkReplace typo
barisusakli 7c00bce63c faster checkAndReplace
still need a better solution for this uniqueId business but this is
better than before.
Julian Lam 4c9ea62c0d resolved -- username clashes will now cause a random # to be appended to the username
Julian Lam b12b2f13ea closed
barisusakli 2220483915 notifications
Baris Soner Usakli ea222c4f8a crash fix for notifications, removed exec_body_script, closes
Julian Lam 9e64f4e303 passing in a picture into notifications now
Julian Lam aba1b95cac updating notifications.create to accept a hash instead of discrete arguments - breaking change
Julian Lam d0d3160fc7 final pass,
Julian Lam 8bd6f85478 first pass,
Baris Soner Usakli daa1154797 added timing to prune
Baris Soner Usakli 20dd194171 show error in composer if upload fails
Julian Lam adb8f80b86 interim commit - removed calls to websockets.js, beginning porting to namespaced files
psychobunny dc4aeca427 also send notification data along with event:new_notification socket call
Julian Lam c313c4501b pushNotifCount method for real-time updating of notification bell + favicon for multiple tabs (closes )
Baris Soner Usakli 447073560f moved reds into redis, fixed notifications prune param
Baris Usakli dcbe4ffd4a more notif.prune cleanup
Baris Usakli 215b919362 added db function
Baris Usakli 58df656c65 removed temp vars
Baris Usakli a8c91e2452 more
Baris Usakli 806a454b05 fixing notifications.prune
Baris Usakli c096656eff merged master fixed conflicts
Baris Soner Usakli 639247a8b0 fixed notifications
Baris Soner Usakli 2e2938616d more mongo and redis stuff
Baris Soner Usakli 53a7eab3e8 removed couple RDB.multis
Julian Lam e847c015a5 linting notifications.js
Baris Soner Usakli 32d5118266 tons more changes
Baris Soner Usakli e32d230974 format
Baris Soner Usakli 32b191fa62 removed global.io
Baris Usakli e1f6e064a9 removed io from user.js, figure out why notifications are breaking when websockets.js is required from it
Julian Lam 2309ab2002 hopefully closed
Julian Lam 26d9cc56d3 added cronjob for notifications
Julian Lam 930a9c8bca completed notifications pruning method
Julian Lam ed7c9348b7 interim commit
Julian Lam aecbe6d316 interim commit, still nothing done
Julian Lam f6be3eacfc interim commit
Julian Lam 62c85274a3 mark all notifs as read functionality. CSS tweaks...
Julian Lam 585e07bc79 closed - notifications now no longer need scores
Baris Usakli 27cb837b08 closes
psychobunny aea3181d27 formatting - server side core
Julian Lam 7251af56e3 refactored notifications library to mark all notifs read when the menu is
opened (closes )
Julian Lam 984ac21e52 updating notifications lib to not expose every method
Julian Lam 87e2023c86 closed by implementing solution
Baris Soner Usakli 0a0f8a21f0 changed new Date().getTime() to Date.now() on server side
Julian Lam 88bf9425db install script + patching up integration with install wizard
Julian Lam 2a829a0618 derpy globals to get notification pushing working for sockets on new notification event
Julian Lam 7e46f8c6ce uniqueId support in notifications
Julian Lam 681bf270a1 hotfix to path to utils