Include the topic's creator in transformed posts

This commit is contained in:
Robin Ward 2016-03-18 13:17:16 -04:00
parent bd83cf7f4c
commit b1ac7491de

View File

@ -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;