Commit Graph

200 Commits (070215b05ef45fc8cab78cc334098d3ce508a12b)

Author SHA1 Message Date
Barış Soner Uşaklı 591a8b6b12 Merge pull request from stevelacy/master
Add user.updateProfile - hook user profile updates
barisusakli 1b80e6dbb2 fix email update on mongo
barisusakli f15631c3e1 topic notification nid doesn't need post id
barisusakli 224218f519 fix missing callback
barisusakli 304f5b1c76 removed duped and empty bodyLong
barisusakli 6802bf7ce9 closes
Steve Lacy 2d238e61ac correct object
barisusakli 93d4a7c1f1 fix notifications to actually get recent
barisusakli 7bf655541c cleanup and optimize notifications
barisusakli cfd7edbf34 added nid
barisusakli b5fb7691cd optimize getUnreadByField
only get the most recent 100 notifications
dont call UserNotifications.getNotifications which does alot more work,
call the db directly
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
Steve Lacy 3ff7719cd4 add hook: filter: user.updateProfile
barisusakli 761f56aeb1 removed most of the db.sortedSetCards
psychobunny 729ed6fbda all your semi-colons are belongs to me
barisusakli 348911fd2d closes
barisusakli 33780e6fdb closes
barisusakli cf252a29a7 closes
barisusakli 977cd98a79 dont crash if user doesn't have email
barisusakli 5ff293109d fix getUnreadByField
barisusakli d303dea6c7 closes
barisusakli bedadd8b5f
barisusakli 64c51d5cba check nid before pusing and marking read
barisusakli c640e01969 show stack
barisusakli 3d4dad226e crash fix
psychobunny d6e0be52ce companion to 48c123592e - prevent deleting your own account if you're admin
barisusakli 4b80bbb9c4 optimized user.delete
Julian Lam b80b0e1e99 re: , chat message emails are now opt-in
barisusakli e10fbfa0d2 Merge remote-tracking branch 'origin/0.5.1' into hashtalk
barisusakli b3d9db10f2 notification fixes
made post notifications unique per post so they dont overwrite other
types.
barisusakli dc441c2873 check err
barisusakli 4e6719e0aa added filterUids method to privileges
used to filter uids on a single category
barisusakli 493d0dea1e part 1 of notif refactor
barisusakli e34ef71acd fixed resetLockout
barisusakli 6cd84ebe81 removed parseInt from sorts
barisusakli 57e204df8e removed most of the debug
dont get more than 6 usernames for upvote tooltips
generatePostPaths wont check null pids
barisusakli 3f96532c3f disabled 2 calls
barisusakli 877cf1e15c derp
barisusakli e5795687bb fix settings on mongo
barisusakli 2073d994fc limit topicsperpage postsPerPage to 20
Julian Lam e6d0eede4f pruning empy notifications for daily emailer
barisusakli 14fcd36134 closes
barisusakli 576081e25f delete user ignored cids on account delete
barisusakli ba4b98de0e email and username checks on profile update
barisusakli d67cd489cd crash fix
barisusakli eef200be10 closes
barisusakli 24ea74dc41 lol
O(log(n)) to O(1) and away
barisusakli 05fdc945f3 closes
barisusakli 5ae7c92d55 notifications refactor
added getMultiple which works with an array of nids
barisusakli c58712e2a9 closes
barisusakli c9c454825e closes
barisusakli 005405b16c closes
barisusakli c4b083330c closes
barisusakli c8084e9b2e closes
barisusakli 5b681678b1 could use async.apply here hm
barisusakli f39d772a40 if notification is purged delete from user mapping as well
psychobunny bb48bdb008 closes
barisusakli 3163f70ef2 add tid to post notification so its marked read on entry
barisusakli de6e74c50e
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.
barisusakli 96b0b449b9 closes
barisusakli f71bd41408 more fixes
barisusakli dfb6606432 one more fix
barisusakli 08ba683c7d fix callback
barisusakli d7520508e3 part1
barisusakli d25300043c
barisusakli 7454fd53b9 possible fix for
barisusakli c9fb5b3e11 changed user posted notification to include title
dont send 2 notifications if you are already following topic
barisusakli 6e66911ef7 delete unread chats on account delete
barisusakli 943f3814e5 closes
barisusakli ebaf8df0a9
barisusakli fcd460438d closes
barisusakli d3312f1b8e fixer or in jobs and users redefinition
dhingey 9d45373b59 Change user.delete hook from action to filter
The user.delete hook is now a filter, giving plugins a chance to access
the user's data before it's deleted from Redis.
dhingey f7372ba8d5 Added a hook: action:user.delete
Allows plugins to access the uid of the user being deleted.
barisusakli dcbed4e935 closes
show alert if email not confirmed, clicking alert will send confirmation
email
barisusakli 49a9601a04 closes
barisusakli 1296cd58b9 closes
barisusakli dceeed22f7 closes
Julian Lam d229cd21b2 parsing the post content that's passed into bodyLong in notifs
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.
barisusakli 4c2765a79c closes
barisusakli 311a7ad5b9 topic purge
barisusakli a65d612907 post purge
psychobunny e5d465392f closes
barisusakli 7610c11cd1 closes
backup database before upgrade!
upgrade script will take the first post of each topic and set the
`mainPid` property on the topic. then it will remove that pid from the
sorted sets for that topic, this was done to make alternative sorting
work.

added a new sorted set called `tid:<id>:posts:votes` that is used to
sort topic posts by vote count, the original sorted set `tid:<id>:posts`
is used to sort by oldest first or newest first.

the main post is added to the returned posts array on topic load and is
always at the top.
theme changes are minimal just a few new data properties on the posts
and the sorting dropdown.
hopefully didn't miss anything too critical.
psychobunny a0bdd06a6a filter:user.custom_fields - ability to add custom fields into userData
psychobunny 013f62cd7d action:user.verify & filter:user.verify.code - plugins can now override the verification system
barisusakli d1c2c87510 fixed double index in post notification
barisusakli 6b93095204 more link fixes
barisusakli efe04c12d3 closes
if email isnt confirmed, show a warning in account/edit and let users
resend confirm email
barisusakli 65e9f68d73 change requireEmail default to off
barisusakli b537666e5c closes , closes
barisusakli e20920c536 closes
Julian Lam 8efb930ec0 site title fallbacks for daily digest titles
barisusakli 66701afdaa closes
fixes the notification image too, the property was called image not
picture
Julian Lam 8a510c340b limiting user and group creation so that their slugs can't intersect.
barisusakli d8fd29581e deleting a user will delete topic tags too
barisusakli c7744d7a64 closes