Getting joined data for widget scope

Thanks for confirming my direction… :slight_smile:

I had to re-check everything and found a bug on my part… This code works for me… Example is getting last_seen_at from user object. Would be fine for highlighting online users…

Thanks for this great project!

post_serializer.rb

  attributes :post_number,
             :user_last_seen_at,
             
  def user_last_seen_at
    object.try(:user).try(:last_seen_at)
  end

transform-post.js.es6

 export function transformBasicPost(post) {
   ...
   const postAtts = {
     ... 
     user_last_seen_at: post.user_last_seen_at,
2 likes