Skip to content

Commit

Permalink
NodeBB Update
Browse files Browse the repository at this point in the history
Highlights
----------

- (WTDWTF only) Disabled "dismiss flag" feature as all it did was delete
  the flag permanently.
- Switched to anotherusername's details shim
  <https://what.thedailywtf.com/post/1014136>
- Removed hack to prevent admins/mods from accessing other users' chats
  as this is now in core.
- Flag management UI has English translations instead of placeholders.
  In all languages. :wtf:
- Fixed: Crash when forking from large topic
  <NodeBB/NodeBB#5077>
- Post cache size is now configurable
  <NodeBB/NodeBB#5081>
- Updated jQuery textcomplete plugin from 1.3.4 to 1.7.3.

Change Lists
------------

- NodeBB/NodeBB@3a50c46...804c792
- NodeBB/nodebb-theme-persona@aec8f2d...ecebebe
- yuku/textcomplete@7846dc5...adda116
  • Loading branch information
BenLubar committed Oct 7, 2016
1 parent 43f617f commit b41527a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion NodeBB
Submodule NodeBB updated 387 files
17 changes: 0 additions & 17 deletions plugins/nodebb-plugin-tdwtf-customizations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,6 @@ module.exports = {
}).unref();
callback();
},
"protectChats": function(req, res, next) {
if (req.route.path === '/user/:userslug/chats/:roomid?' || req.route.path === '/api/user/:userslug/chats/:roomid?') {
return User.getUidByUserslug(req.params.userslug, function(err, uid) {
if (err) {
return next(err);
}

if (req.uid === uid) {
return next();
}

controllerHelpers.notAllowed(req, res);
});
}

next();
},
"meta": function(tags, callback) {
tags = tags.concat([{
name: 'google-site-verification',
Expand Down
1 change: 0 additions & 1 deletion plugins/nodebb-plugin-tdwtf-customizations/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"library": "index.js",
"hooks": [
{"hook": "static:app.load", "method": "init"},
{"hook": "filter:router.page", "method": "protectChats"},
{"hook": "filter:meta.getMetaTags", "method": "meta"},
{"hook": "filter:middleware.renderHeader", "method": "header"},
{"hook": "filter:post.edit", "method": "postEdit"},
Expand Down

0 comments on commit b41527a

Please sign in to comment.