From b1ac7491debc5538ba3f29b4379918bcbcfc6c8a Mon Sep 17 00:00:00 2001
From: Robin Ward <robin.ward@gmail.com>
Date: Fri, 18 Mar 2016 13:17:16 -0400
Subject: [PATCH] Include the topic's creator in transformed posts

---
 app/assets/javascripts/discourse/lib/transform-post.js.es6 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/assets/javascripts/discourse/lib/transform-post.js.es6 b/app/assets/javascripts/discourse/lib/transform-post.js.es6
index b3379004e..f1fb42c19 100644
--- a/app/assets/javascripts/discourse/lib/transform-post.js.es6
+++ b/app/assets/javascripts/discourse/lib/transform-post.js.es6
@@ -87,6 +87,7 @@ export default function transformPost(currentUser, site, post, prevPost, nextPos
 
   postAtts.topicId = topic.id;
   postAtts.topicOwner = details.created_by.id === post.user_id;
+  postAtts.topicCreatedById = details.created_by.id;
   postAtts.post_type = postType;
   postAtts.via_email = post.via_email;
   postAtts.isModeratorAction = postType === postTypes.moderator_action;