{"action":"created","issue":{"url":"https://api.github.com/repos/NodeBB/NodeBB/issues/5024","repository_url":"https://api.github.com/repos/NodeBB/NodeBB","labels_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/5024/labels{/name}","comments_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/5024/comments","events_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/5024/events","html_url":"https://github.com/NodeBB/NodeBB/issues/5024","id":176190600,"number":5024,"title":"Crash with TypeError: Cannot read property 'filter' of undefined","user":{"login":"gnimmelf","id":488269,"avatar_url":"https://avatars.githubusercontent.com/u/488269?v=3","gravatar_id":"","url":"https://api.github.com/users/gnimmelf","html_url":"https://github.com/gnimmelf","followers_url":"https://api.github.com/users/gnimmelf/followers","following_url":"https://api.github.com/users/gnimmelf/following{/other_user}","gists_url":"https://api.github.com/users/gnimmelf/gists{/gist_id}","starred_url":"https://api.github.com/users/gnimmelf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnimmelf/subscriptions","organizations_url":"https://api.github.com/users/gnimmelf/orgs","repos_url":"https://api.github.com/users/gnimmelf/repos","events_url":"https://api.github.com/users/gnimmelf/events{/privacy}","received_events_url":"https://api.github.com/users/gnimmelf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-10T17:16:11Z","updated_at":"2016-09-10T18:03:26Z","closed_at":"2016-09-10T18:03:26Z","body":"NodeBB v1.1.2, 89f550ce7cb4cbfecdf40d73f38c773310784ef7\r\nMongo v3.2.9\r\n\r\nMade my first post as an administrator, then clicked the `Administrators`-link: `/groups/administrators`\r\n\r\n```\r\n10/9 17:10 [28983] - error: TypeError: Cannot read property 'filter' of undefined\r\n    at async.waterfall.posts.getPostSummaryByPids.stripTags (/opt/NodeBB/src/groups.js:366:21)\r\n    at fn (/opt/NodeBB/node_modules/async/lib/async.js:746:34)\r\n    at /opt/NodeBB/node_modules/async/lib/async.js:1213:16\r\n    at /opt/NodeBB/node_modules/async/lib/async.js:166:37\r\n    at /opt/NodeBB/node_modules/async/lib/async.js:706:43\r\n    at /opt/NodeBB/node_modules/async/lib/async.js:167:37\r\n    at /opt/NodeBB/node_modules/async/lib/async.js:1209:30\r\n    at /opt/NodeBB/src/database/mongo/sorted.js:159:5\r\n    at handleCallback (/opt/NodeBB/node_modules/mongodb/lib/utils.js:96:12)\r\n    at /opt/NodeBB/node_modules/mongodb/lib/cursor.js:839:16\r\n    at handleCallback (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:159:5)\r\n    at setCursorDeadAndNotified (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:501:3)\r\n    at nextFunction (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:652:7)\r\n    at Cursor.next [as _next] (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:693:3)\r\n    at fetchDocs (/opt/NodeBB/node_modules/mongodb/lib/cursor.js:835:10)\r\n    at /opt/NodeBB/node_modules/mongodb/lib/cursor.js:858:7\r\n    at handleCallback (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:159:5)\r\n    at nextFunction (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:683:5)\r\n    at /opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:585:7\r\n    at queryCallback (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:220:18)\r\n    at Callbacks.emit (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:119:3)\r\n    at null.messageHandler (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:397:23)\r\nTypeError: Cannot read property 'filter' of undefined\r\n    at async.waterfall.posts.getPostSummaryByPids.stripTags (/opt/NodeBB/src/groups.js:366:21)\r\n    at fn (/opt/NodeBB/node_modules/async/lib/async.js:746:34)\r\n    at /opt/NodeBB/node_modules/async/lib/async.js:1213:16\r\n    at /opt/NodeBB/node_modules/async/lib/async.js:166:37\r\n    at /opt/NodeBB/node_modules/async/lib/async.js:706:43\r\n    at /opt/NodeBB/node_modules/async/lib/async.js:167:37\r\n    at /opt/NodeBB/node_modules/async/lib/async.js:1209:30\r\n    at /opt/NodeBB/src/database/mongo/sorted.js:159:5\r\n    at handleCallback (/opt/NodeBB/node_modules/mongodb/lib/utils.js:96:12)\r\n    at /opt/NodeBB/node_modules/mongodb/lib/cursor.js:839:16\r\n    at handleCallback (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:159:5)\r\n    at setCursorDeadAndNotified (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:501:3)\r\n    at nextFunction (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:652:7)\r\n    at Cursor.next [as _next] (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:693:3)\r\n    at fetchDocs (/opt/NodeBB/node_modules/mongodb/lib/cursor.js:835:10)\r\n    at /opt/NodeBB/node_modules/mongodb/lib/cursor.js:858:7\r\n    at handleCallback (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:159:5)\r\n    at nextFunction (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:683:5)\r\n    at /opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:585:7\r\n    at queryCallback (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:220:18)\r\n    at Callbacks.emit (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:119:3)\r\n    at null.messageHandler (/opt/NodeBB/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:397:23)\r\n```\r\n\r\nNo changes in MongoDB logs when the crash happens.\r\n"},"comment":{"url":"https://api.github.com/repos/NodeBB/NodeBB/issues/comments/246126259","html_url":"https://github.com/NodeBB/NodeBB/issues/5024#issuecomment-246126259","issue_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/5024","id":246126259,"user":{"login":"gnimmelf","id":488269,"avatar_url":"https://avatars.githubusercontent.com/u/488269?v=3","gravatar_id":"","url":"https://api.github.com/users/gnimmelf","html_url":"https://github.com/gnimmelf","followers_url":"https://api.github.com/users/gnimmelf/followers","following_url":"https://api.github.com/users/gnimmelf/following{/other_user}","gists_url":"https://api.github.com/users/gnimmelf/gists{/gist_id}","starred_url":"https://api.github.com/users/gnimmelf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnimmelf/subscriptions","organizations_url":"https://api.github.com/users/gnimmelf/orgs","repos_url":"https://api.github.com/users/gnimmelf/repos","events_url":"https://api.github.com/users/gnimmelf/events{/privacy}","received_events_url":"https://api.github.com/users/gnimmelf/received_events","type":"User","site_admin":false},"created_at":"2016-09-10T18:03:25Z","updated_at":"2016-09-10T18:03:25Z","body":"Upgrading solved it =)"}}
{"actor":{"display_login":"gnimmelf"}}