0_1457071644710_nbb1.0.0.PNG
No announcement thread in the announcements section?
Congratulations, guys! NodeBB has come a long way.
If you have any plugins using any of those hooks, please upgrade your plugin and add
"nbbpm": {
"compatibility": "^1.5.0"
}
to your package.json.
Apart from the hook parameter changes we have a bunch of other breaking changes in 1.5.0. Here is a list of them and the relevant changes in themes & plugins.
filter:user.updateProfile
, action:user.updateProfile
. The first param to this method is now the uid of the user making the call. The uid of the user being updated is in data.uid
.filter:post.get
changed to pass in the uid of the user. There is a new hook called filter:post.getPostData
which only has the post data.As of v1.4.4 nconf.get('upload_path');
is no longer a relative path pointing to the uploas directory, it is now an absolute path to the uploads directory. Change introduced in commit aaacdb8413c9bc3f3d47c249c0d0287eac1cad88