THank you very much!
Butterfly
Posts
-
Get current user session -
Get current user sessionhttps://github.com/NodeBB/NodeBB/blob/master/src/posts/parse.js#L63
const data = await plugins.hooks.fire('filter:parse.post', { postData: postData });
Doesn't seem like uid is passed at all in this hook
-
Get current user session@pitaj Like so?
parsePost: function(data, uid, callback){
Seems like I am getting the post and callback parameters, no uid of current user viewing the postIF im correct you mean the uid would be in the payload that gets passed?
so asdata.uid
because this is undefined too -
Get current user sessionI have been searching days to find how to get the uid of the current user session in plugins.
I have afilter:parse.post
I read some stuff about express and socket.io but still failing to do so, I know this is an old topic but this is the most accurate to my descriptions
-
HTML not being sanitizedThank you alot! I fixed it by restarting
I wasn't able to reply fast since I don't have enough rep yet -
HTML not being sanitizedYes, I activated it and it still does the same, maybe wrong one?
-
HTML not being sanitizedUsers on my forum are able to execute javascript to create a xss attack,
this means the default group and all other groups.
We all know this is a bad issue, but does anyone know what might disable it?