Discourse Event Bus Question

I’m sorry if this is wrong area but does Discourse fire an event when the profile JSON file is requested over HTTP?
https://meta.discourse.org/u/Marcy.json for example.

1 Like

No it does not, you would have to write a plugin to intercept that info.


I’d like to but I’m unsure where to start. I want to change information on the JSON file before it’s displayed to the client.

1 Like

That would mean you want to amend the serializer, look at plugins such as discourse assign or discourse solved that make serializer changes.


Thanks for the tip, I found this which I assume makes the {Username}.json file?

Is there any Discourse Ruby API on what events exist, etc? As I don’t know how I’d make changes to it before being displayed as I wanna change the email field before it’s displayed.