Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error opening /user/:userslug page on v2.8.1 #61

Open
Frozen-byte opened this issue Jan 13, 2023 · 2 comments
Open

error opening /user/:userslug page on v2.8.1 #61

Frozen-byte opened this issue Jan 13, 2023 · 2 comments

Comments

@Frozen-byte
Copy link

on v2.8.1, when opening my own user profile:
image

2023-01-13T18:25:30.091Z [4567/89082] - error: GET /user/admin
TypeError: Cannot read properties of undefined (reading 'uid')
    at /home/frozen_byte/Projects/nodebb-plugin-ns-awards/plugin/controller.js:193:54
    at nextTask (/home/frozen_byte/Projects/nodebb-plugin-ns-awards/node_modules/async/dist/async.js:5759:13)
    at next (/home/frozen_byte/Projects/nodebb-plugin-ns-awards/node_modules/async/dist/async.js:5767:13)
    at /home/frozen_byte/Projects/nodebb-plugin-ns-awards/node_modules/async/dist/async.js:327:20
    at Settings.get (/home/frozen_byte/Projects/nodebb-plugin-ns-awards/plugin/settings.js:60:16)
    at /home/frozen_byte/Projects/nodebb-plugin-ns-awards/node_modules/async/dist/async.js:53:33
    at nextTask (/home/frozen_byte/Projects/nodebb-plugin-ns-awards/node_modules/async/dist/async.js:5759:13)
    at Object.waterfall (/home/frozen_byte/Projects/nodebb-plugin-ns-awards/node_modules/async/dist/async.js:5770:9)
    at Object.awaitable (/home/frozen_byte/Projects/nodebb-plugin-ns-awards/node_modules/async/dist/async.js:211:32)
    at Object.Controller.getAccountWithRewards (/home/frozen_byte/Projects/nodebb-plugin-ns-awards/plugin/controller.js:186:15)
@Frozen-byte
Copy link
Author

Frozen-byte commented Jan 13, 2023

I think the issue is on plugin/filter.js:16 since the payload argument does not contain userData but templateData.

@Frozen-byte
Copy link
Author

solved with: #59

just wanted to create my own PR as I saw this, lol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant