[MM-12465] Added capability to export reactions of posts during bulk export (#9600)

* Added capability to export reactions of posts

* Added capability to export reactions of replies of a post

* Added test case to test the reactions of a post
Этот коммит содержится в:
Wasim Thabraze
2018-10-17 18:53:10 +05:30
коммит произвёл George Goldberg
родитель 1befeb61d0
Коммит 7562f940bb
3 изменённых файлов: 75 добавлений и 1 удалений

Просмотреть файл

@@ -111,3 +111,11 @@ func ImportReplyFromPost(post *model.ReplyForExport) *ReplyImportData {
CreateAt: &post.CreateAt,
}
}
func ImportReactionFromPost(reaction *model.Reaction) *ReactionImportData {
return &ReactionImportData{
User: &reaction.UserId,
EmojiName: &reaction.EmojiName,
CreateAt: &reaction.CreateAt,
}
}