Way to get req (and maybe res) objects during a widget render?
-
I'm working on a widget that needs access to the current req object to access information that isn't included in the provided data of the hook: filter:widget.render:widgetName
Is there a way to do this? If not, is there a good reason that we don't have access to the current request while rendering a widget?
Thanks!
-
The widgets refactor is far down on my current priorities so if you think you can PR the feature you requested I am more than happy to accept.
If not, feel free to make an issue on GH
-
I don't know what PR means in this case, but I'll help you find some.
I think I have found a workaround, but it feels like a hack.
-
I meant a pull request on GitHub, if you thought you could modify nodebb core to work the way you want it to I'd be happy to merge it in
-
Nice! I'll look at what it takes.
-
I made the additions and created a pull request: https://github.com/NodeBB/NodeBB/pull/3555
-
Looks good to me. Just waiting on confirmation of CLA
-
Cool! Just signed it.