Yes if you modify the query that builds the FlaggedPost on the server side (that SQLBuilder I sent across) the properties would just be there. Adding an extension point there could be something like:
# in flagged_posts_report, after posts.map!(&:marshal_dump)
posts = FlagPostQuery.load_extra_data(posts)
Then you could add an identity method like:
def self.load_extra_data(posts)
posts
end
Then in your plugin.rb you could do:
add_class_method(:flag_query, :load_extra_data) do |posts|
# Shove the extra data in `posts` here
posts
end
You can reopen the class in the front end, but when would you load the data? In general our application expects data to be loaded before a route is entered. There are exceptions, such as clicking on a button to load more data.