diff --git a/app/controllers/api/users_controller.rb b/app/controllers/api/users_controller.rb index 8b4f4de..d9c6f70 100644 --- a/app/controllers/api/users_controller.rb +++ b/app/controllers/api/users_controller.rb @@ -83,7 +83,12 @@ status.destroy next end - @userStatuses.push({ 'user' => status.user.username, 'message' => status.text }) + @userStatuses.push({ + 'user' => status.user.username, + 'message' => status.text, + 'createdAt' => status.created_at.to_i, + 'lifetime' => status.lifetime, + }) end render :json => { 'success' => true, 'userStatuses' => @userStatuses } end