From 7562f940bb7b0de80bcfb8f5c3fc1b751a1a6b16 Mon Sep 17 00:00:00 2001 From: Wasim Thabraze Date: Wed, 17 Oct 2018 18:53:10 +0530 Subject: [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 --- app/export_converters.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/export_converters.go') diff --git a/app/export_converters.go b/app/export_converters.go index cafe360cb..3b536c6e3 100644 --- a/app/export_converters.go +++ b/app/export_converters.go @@ -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, + } +} -- cgit v1.2.3-1-g7c22