Yeah, so then you're probably on v.1.1.2 or close to it. You need to wipe your DB, and then start over, checking out v1.0.0: cd <your NodeBB directory> && rm -rf node_modules && git checkout v1.0.0 && ./nodebb install
Getting logged in uid
-
Is there a clean way to get the currently logged in user's uid from a plugin? A search didn't seem to turn up a consensus.
-
@bbb in what context? A hook? A route handler? A client side script?
-
A hook. Specifically, action:post.setFields at the moment, but I'll need it for other hooks as well.
-
@pitaj Im also searching for how to get the current uid for use in a plugin hook method.
-
Depending on the plugin hook, the
uid
is included in the payload.