summaryrefslogtreecommitdiffstats
path: root/app/export_converters.go
diff options
context:
space:
mode:
authorWasim Thabraze <wasim@thabraze.me>2018-10-17 18:53:10 +0530
committerGeorge Goldberg <george@gberg.me>2018-10-17 14:23:10 +0100
commit7562f940bb7b0de80bcfb8f5c3fc1b751a1a6b16 (patch)
tree19ce5b4d1031887ea62865006f8b7ead892d543c /app/export_converters.go
parent1befeb61d0299028d050a732ea9c8f7e8774ed74 (diff)
downloadchat-7562f940bb7b0de80bcfb8f5c3fc1b751a1a6b16.tar.gz
chat-7562f940bb7b0de80bcfb8f5c3fc1b751a1a6b16.tar.bz2
chat-7562f940bb7b0de80bcfb8f5c3fc1b751a1a6b16.zip
[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
Diffstat (limited to 'app/export_converters.go')
-rw-r--r--app/export_converters.go8
1 files changed, 8 insertions, 0 deletions
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,
+ }
+}