Potential issue with GDPR consent page ("export posts" crashes nodebb)
-
Hi,
My setup: Version: 1.9.2 (synced with master).
Pressing "export uploaded content" creates an empty zip file - maybe the user should get a message instead? (anyway this is a minor issue)
Pressing "export posts" crashes nodebb:
error: TypeError: Cannot read property 'content' of null
at /nodebb/src/controllers/user.js:122:32
at Array.map (native)
at /nodebb/src/controllers/user.js:121:20
at /nodebb/node_modules/async/dist/async.js:1126:9
at iteratorSymbol (/nodebb/node_modules/async/dist/async.js:473:16)
at iteratorCallback (/nodebb/node_modules/async/dist/async.js:1050:13)
at /nodebb/node_modules/async/dist/async.js:958:16
at /nodebb/node_modules/async/dist/async.js:1123:13
at iteratorSymbol (/nodebb/node_modules/async/dist/async.js:473:16)
at next (/nodebb/node_modules/async/dist/async.js:5315:29)
at /nodebb/node_modules/async/dist/async.js:958:16
at /nodebb/src/posts.js:107:4
at nextTask (/nodebb/node_modules/async/dist/async.js:5310:14)
at next (/nodebb/node_modules/async/dist/async.js:5317:9)
at /nodebb/node_modules/async/dist/async.js:958:16
at fireFilterHook (/nodebb/src/plugins/hooks.js:114:11)Not sure how to go about fixing this...
JJ.