I’m working on a plugin that uses the Group flair image.
When I perform a SQL query to grab the
flair_url from the
groups table, it returns NULL for every group despite having an image uploaded. The Discourse data explorer plugin also confirms this (
SELECT flair_url from groups)
However, the /g.json page does provide a valid
What’s up with this? is there some quirk about fetching this url that makes it hard to get from a SQL query? I’m still pretty new to Ruby and Rails so I don’t know exactly where I would look in the Discourse source to figure this out. I did notice on line 9 on app/models/group.rb that the
flair_url is added to “
ignored_columns”, - I’m not sure what the implications of that are, if any.
Just wondering if this column appearing NULL is intentional and if so, I would appreciate any tips to get that data from the Ruby back-end of my plugin